Skip to content

Commit

Permalink
Update merges child theme JSON test to use Gutenberg class instead of…
Browse files Browse the repository at this point in the history
… core WP_Theme_JSON_Resolver class
  • Loading branch information
andrewserong committed Nov 10, 2021
1 parent 52f379d commit 5a8a001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpunit/class-wp-theme-json-resolver-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private static function recursive_ksort( &$array ) {
function test_merges_child_theme_json_into_parent_theme_json() {
switch_theme( 'block-theme-child' );

$actual_settings = WP_Theme_JSON_Resolver::get_theme_data()->get_settings();
$actual_settings = WP_Theme_JSON_Resolver_Gutenberg::get_theme_data()->get_settings();
$expected_settings = array(
'color' => array(
'custom' => false,
Expand Down Expand Up @@ -250,7 +250,7 @@ function test_merges_child_theme_json_into_parent_theme_json() {
);

$this->assertSame(
WP_Theme_JSON_Resolver::get_theme_data()->get_custom_templates(),
WP_Theme_JSON_Resolver_Gutenberg::get_theme_data()->get_custom_templates(),
array(
'page-home' => array(
'title' => 'Homepage',
Expand Down

0 comments on commit 5a8a001

Please sign in to comment.