Skip to content
Prev Previous commit
Next Next commit
Rename data provider's argument to expected
  • Loading branch information
ockham committed Sep 12, 2023
commit e3e00f6ffc9c5d3f9edf80087b576e880ff7daa4
8 changes: 4 additions & 4 deletions tests/phpunit/tests/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,18 @@ public function test_build_block_template_result_from_file() {
*
* @dataProvider data_build_block_template_result_from_file_injects_theme_attribute
*
* @param string $filename The template's filename.
* @param string $expected_content The expected block markup.
* @param string $filename The template's filename.
* @param string $expected The expected block markup.
*/
public function test_build_block_template_result_from_file_injects_theme_attribute( $filename, $expected_content ) {
public function test_build_block_template_result_from_file_injects_theme_attribute( $filename, $expected ) {
$template = _build_block_template_result_from_file(
array(
'slug' => 'single',
'path' => __DIR__ . '/../data/templates/' . $filename,
),
'wp_template'
);
$this->assertSame( $expected_content, $template->content );
$this->assertSame( $expected, $template->content );
}

public function data_build_block_template_result_from_file_injects_theme_attribute() {
Expand Down