Changeset 57514 for trunk/tests/phpunit/tests/block-bindings/register.php
- Timestamp:
- 02/01/2024 12:52:54 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-bindings/register.php
r57385 r57514 18 18 19 19 /** 20 * Set up before each test. 21 * 22 * @since 6.5.0 23 */ 24 public function set_up() { 25 foreach ( get_all_registered_block_bindings_sources() as $source_name => $source_properties ) { 26 unregister_block_bindings_source( $source_name ); 27 } 28 29 parent::set_up(); 30 } 31 32 /** 20 33 * Tear down after each test. 21 34 * … … 24 37 public function tear_down() { 25 38 foreach ( get_all_registered_block_bindings_sources() as $source_name => $source_properties ) { 26 if ( str_starts_with( $source_name, 'test/' ) ) { 27 unregister_block_bindings_source( $source_name ); 28 } 39 unregister_block_bindings_source( $source_name ); 29 40 } 30 41
Note: See TracChangeset
for help on using the changeset viewer.