Changeset 52330 for trunk/tests/phpunit/tests/theme/wpTheme.php
- Timestamp:
- 12/07/2021 12:00:45 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpTheme.php
r52279 r52330 249 249 250 250 /** 251 * @dataProvider data_is_block_ based251 * @dataProvider data_is_block_theme 252 252 * @ticket 54460 253 253 * 254 * @covers WP_Theme::is_block_ based254 * @covers WP_Theme::is_block_theme 255 255 * 256 256 * @param string $theme_dir Directory of the theme to test. 257 257 * @param bool $expected Expected result. 258 258 */ 259 public function test_is_block_based( $theme_dir, $expected ) { 260 $theme = new WP_Theme( $theme_dir, $this->theme_root ); 261 $actual = $theme->is_block_based(); 262 263 if ( $expected ) { 264 $this->assertTrue( $actual ); 265 } else { 266 $this->assertFalse( $actual ); 267 } 259 public function test_is_block_theme( $theme_dir, $expected ) { 260 $theme = new WP_Theme( $theme_dir, $this->theme_root ); 261 $this->assertSame( $expected, $theme->is_block_theme() ); 268 262 } 269 263 … … 273 267 * @return array 274 268 */ 275 public function data_is_block_ based() {269 public function data_is_block_theme() { 276 270 return array( 277 271 'default - non-block theme' => array(
Note: See TracChangeset
for help on using the changeset viewer.