Changeset 54889 for trunk/tests/phpunit/tests/block-supports/layout.php
- Timestamp:
- 11/29/2022 12:32:37 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-supports/layout.php
r53916 r54889 33 33 private $orig_theme_dir; 34 34 35 function set_up() {35 public function set_up() { 36 36 parent::set_up(); 37 37 $this->theme_root = realpath( DIR_TESTDATA . '/themedir1' ); … … 51 51 } 52 52 53 function tear_down() {53 public function tear_down() { 54 54 $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir; 55 55 … … 64 64 } 65 65 66 function filter_set_theme_root() {66 public function filter_set_theme_root() { 67 67 return $this->theme_root; 68 68 } … … 71 71 * @ticket 55505 72 72 */ 73 function test_outer_container_not_restored_for_non_aligned_image_block_with_non_themejson_theme() {73 public function test_outer_container_not_restored_for_non_aligned_image_block_with_non_themejson_theme() { 74 74 // The "default" theme doesn't have theme.json support. 75 75 switch_theme( 'default' ); … … 87 87 * @ticket 55505 88 88 */ 89 function test_outer_container_restored_for_aligned_image_block_with_non_themejson_theme() {89 public function test_outer_container_restored_for_aligned_image_block_with_non_themejson_theme() { 90 90 // The "default" theme doesn't have theme.json support. 91 91 switch_theme( 'default' ); … … 108 108 * @param string $expected The expected block image HTML. 109 109 */ 110 function test_additional_styles_moved_to_restored_outer_container_for_aligned_image_block_with_non_themejson_theme( $block_image_html, $expected ) {110 public function test_additional_styles_moved_to_restored_outer_container_for_aligned_image_block_with_non_themejson_theme( $block_image_html, $expected ) { 111 111 // The "default" theme doesn't have theme.json support. 112 112 switch_theme( 'default' ); … … 161 161 * @ticket 55505 162 162 */ 163 function test_outer_container_not_restored_for_aligned_image_block_with_themejson_theme() {163 public function test_outer_container_not_restored_for_aligned_image_block_with_themejson_theme() { 164 164 switch_theme( 'block-theme' ); 165 165 $block = array(
Note: See TracChangeset
for help on using the changeset viewer.