Changeset 56492
- Timestamp:
- 08/30/2023 10:49:27 AM (18 months ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php
r55457 r56492 66 66 self::$registry_instance_property->setAccessible( true ); 67 67 $test_registry = new WP_Block_Pattern_Categories_Registry(); 68 self::$registry_instance_property->setValue( $test_registry );68 self::$registry_instance_property->setValue( null, $test_registry ); 69 69 70 70 // Register some categories in the test registry. … … 89 89 90 90 // Restore the original registry instance. 91 self::$registry_instance_property->setValue( self::$orig_registry );91 self::$registry_instance_property->setValue( null, self::$orig_registry ); 92 92 self::$registry_instance_property->setAccessible( false ); 93 93 self::$registry_instance_property = null; -
trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php
r56063 r56492 66 66 self::$registry_instance_property->setAccessible( true ); 67 67 $test_registry = new WP_Block_Pattern_Categories_Registry(); 68 self::$registry_instance_property->setValue( $test_registry );68 self::$registry_instance_property->setValue( null, $test_registry ); 69 69 70 70 // Register some patterns in the test registry. … … 107 107 108 108 // Restore the original registry instance. 109 self::$registry_instance_property->setValue( self::$orig_registry );109 self::$registry_instance_property->setValue( null, self::$orig_registry ); 110 110 self::$registry_instance_property->setAccessible( false ); 111 111 self::$registry_instance_property = null; -
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r55822 r56492 82 82 83 83 public static function tear_down_after_class() { 84 static::$property_blocks_cache->setValue( WP_Theme_JSON_Resolver::class, static::$property_blocks_cache_orig_value );85 static::$property_core->setValue( WP_Theme_JSON_Resolver::class, static::$property_core_orig_value );84 static::$property_blocks_cache->setValue( null, static::$property_blocks_cache_orig_value ); 85 static::$property_core->setValue( null, static::$property_core_orig_value ); 86 86 parent::tear_down_after_class(); 87 87 } … … 760 760 $property = new ReflectionProperty( $theme_json_resolver, 'i18n_schema' ); 761 761 $property->setAccessible( true ); 762 $property->setValue( null );762 $property->setValue( null, null ); 763 763 764 764 // A completely empty theme.json data set still has the 'version' key when parsed.
Note: See TracChangeset
for help on using the changeset viewer.