Skip to content

Commit

Permalink
fix ordering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kt-12 committed Dec 11, 2023
1 parent 3004135 commit 918e20a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/phpunit/tests/blocks/getBlockTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ static function ( $template ) use ( $theme_dir ) {
);

$template_paths = _get_block_templates_paths( $theme_dir );
sort( $expected_template_paths );
sort( $template_paths );
$this->assertSame( $expected_template_paths, $template_paths );
}

Expand All @@ -256,6 +258,8 @@ public function test_get_block_templates_paths_dir_doesnt_exists() {
$expected_template_paths = array();
// should return empty array for invalid path.
$template_paths = _get_block_templates_paths( $theme_dir );
sort( $expected_template_paths );
sort( $template_paths );
$this->assertSame( $expected_template_paths, $template_paths );
}
}

0 comments on commit 918e20a

Please sign in to comment.