Changeset 54501 for trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
- Timestamp:
- 10/11/2022 08:06:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r54493 r54501 391 391 } 392 392 393 $expected_filter_count = did_filter( ' theme_json_default' );393 $expected_filter_count = did_filter( 'wp_theme_json_data_default' ); 394 394 $actual = WP_Theme_JSON_Resolver::get_core_data(); 395 395 if ( $should_fire_filter ) { … … 397 397 } 398 398 399 $this->assertSame( $expected_filter_count, did_filter( ' theme_json_default' ), 'The filter "theme_json_default" should fire the given number of times' );399 $this->assertSame( $expected_filter_count, did_filter( 'wp_theme_json_data_default' ), 'The filter "theme_json_default" should fire the given number of times' ); 400 400 $this->assertInstanceOf( WP_Theme_JSON::class, $actual, 'WP_Theme_JSON_Resolver::get_core_data() should return instance of WP_Theme_JSON' ); 401 401 $this->assertSame( static::$property_core->getValue(), $actual, 'WP_Theme_JSON_Resolver::$core property should be the same object as returned from WP_Theme_JSON_Resolver::get_core_data()' );
Note: See TracChangeset
for help on using the changeset viewer.