Changeset 54631
- Timestamp:
- 10/18/2022 01:28:59 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r54630 r54631 397 397 } 398 398 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' );399 $this->assertSame( $expected_filter_count, did_filter( 'wp_theme_json_data_default' ), 'The filter "wp_theme_json_data_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()' ); … … 706 706 707 707 // Test that wp_theme_json_data_theme filter has been called. 708 $this->assertGreaterThan( 0, did_filter( 'wp_theme_json_data_default' ), 'The filter " theme_json_default" should fire.' );708 $this->assertGreaterThan( 0, did_filter( 'wp_theme_json_data_default' ), 'The filter "wp_theme_json_data_default" should fire.' ); 709 709 710 710 // Test that data from theme.json is backfilled from existing theme supports.
Note: See TracChangeset
for help on using the changeset viewer.