Changeset 52391
- Timestamp:
- 12/19/2021 04:23:38 PM (3 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/themeDir.php
r52279 r52391 164 164 'Block Theme', 165 165 'Block Theme Child Theme', 166 'Test Block Theme',167 'Test Block Child Theme',168 166 ); 169 167 -
trunk/tests/phpunit/tests/theme/wpTheme.php
r52386 r52391 274 274 ), 275 275 'parent block theme' => array( 276 'theme_dir' => ' test-block-theme',276 'theme_dir' => 'block-theme', 277 277 'expected' => true, 278 278 ), 279 279 'child block theme' => array( 280 'theme_dir' => ' test-block-child-theme',280 'theme_dir' => 'block-theme-child', 281 281 'expected' => true, 282 282 ), … … 313 313 ), 314 314 'parent theme: no file given' => array( 315 'theme_dir' => ' test-block-theme',315 'theme_dir' => 'block-theme', 316 316 'file' => '', 317 'expected' => '/ test-block-theme',317 'expected' => '/block-theme', 318 318 ), 319 319 'child theme: no file given' => array( 320 'theme_dir' => ' test-block-child-theme',320 'theme_dir' => 'block-theme-child', 321 321 'file' => '', 322 'expected' => '/ test-block-child-theme',322 'expected' => '/block-theme-child', 323 323 ), 324 324 'nonexistent theme: file given' => array( … … 328 328 ), 329 329 'parent theme: file exists' => array( 330 'theme_dir' => ' test-block-theme',330 'theme_dir' => 'block-theme', 331 331 'file' => '/templates/page-home.html', 332 'expected' => '/ test-block-theme/templates/page-home.html',332 'expected' => '/block-theme/templates/page-home.html', 333 333 ), 334 334 'parent theme: file does not exist' => array( 335 'theme_dir' => ' test-block-theme',335 'theme_dir' => 'block-theme', 336 336 'file' => '/templates/nonexistent.html', 337 'expected' => '/ test-block-theme/templates/nonexistent.html',337 'expected' => '/block-theme/templates/nonexistent.html', 338 338 ), 339 339 'child theme: file exists' => array( 340 'theme_dir' => ' test-block-child-theme',340 'theme_dir' => 'block-theme-child', 341 341 'file' => '/templates/page-1.html', 342 'expected' => '/ test-block-child-theme/templates/page-1.html',342 'expected' => '/block-theme-child/templates/page-1.html', 343 343 ), 344 344 'child theme: file does not exist' => array( 345 'theme_dir' => ' test-block-child-theme',345 'theme_dir' => 'block-theme-child', 346 346 'file' => '/templates/nonexistent.html', 347 'expected' => '/ test-block-theme/templates/nonexistent.html',347 'expected' => '/block-theme/templates/nonexistent.html', 348 348 ), 349 349 'child theme: file exists in parent, not in child' => array( 350 'theme_dir' => ' test-block-child-theme',350 'theme_dir' => 'block-theme-child', 351 351 'file' => '/templates/page.html', 352 'expected' => '/ test-block-theme/templates/page.html',352 'expected' => '/block-theme/templates/page.html', 353 353 ), 354 354 );
Note: See TracChangeset
for help on using the changeset viewer.