Changeset 60930 for trunk/tests/phpunit/tests/blocks/editor.php
- Timestamp:
- 10/14/2025 12:10:31 AM (12 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/blocks/editor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/editor.php
r60719 r60930 32 32 global $post_ID; 33 33 $post_ID = 1; 34 35 global $wp_scripts, $wp_styles; 36 $this->original_wp_scripts = $wp_scripts; 37 $this->original_wp_styles = $wp_styles; 38 $wp_scripts = null; 39 $wp_styles = null; 40 wp_scripts(); 41 wp_styles(); 34 42 } 35 43 36 44 public function tear_down() { 45 global $wp_scripts, $wp_styles; 46 $wp_scripts = $this->original_wp_scripts; 47 $wp_styles = $this->original_wp_styles; 48 37 49 /** @var WP_REST_Server $wp_rest_server */ 38 50 global $wp_rest_server; … … 42 54 parent::tear_down(); 43 55 } 56 57 /** 58 * @var WP_Scripts|null 59 */ 60 protected $original_wp_scripts; 61 62 /** 63 * @var WP_Styles|null 64 */ 65 protected $original_wp_styles; 44 66 45 67 public function filter_set_block_categories_post( $block_categories, $post ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)