Changeset 53417 for branches/6.0/tests/phpunit/tests/theme/wpTheme.php
- Timestamp:
- 05/20/2022 12:59:55 AM (3 years ago)
- Location:
- branches/6.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0
-
branches/6.0/tests/phpunit/tests/theme/wpTheme.php
r53253 r53417 310 310 'expected' => true, 311 311 ), 312 'deprecated block theme' => array( 313 'theme_dir' => 'block-theme-deprecated-path', 314 'expected' => true, 315 ), 312 316 ); 313 317 } … … 336 340 public function data_get_file_path() { 337 341 return array( 338 'no theme: no file given' => array(342 'no theme: no file given' => array( 339 343 'theme_dir' => 'nonexistent', 340 344 'file' => '', 341 345 'expected' => '/nonexistent', 342 346 ), 343 'parent theme: no file given' => array(347 'parent theme: no file given' => array( 344 348 'theme_dir' => 'block-theme', 345 349 'file' => '', 346 350 'expected' => '/block-theme', 347 351 ), 348 'child theme: no file given' => array(352 'child theme: no file given' => array( 349 353 'theme_dir' => 'block-theme-child', 350 354 'file' => '', 351 355 'expected' => '/block-theme-child', 352 356 ), 353 'nonexistent theme: file given' => array(357 'nonexistent theme: file given' => array( 354 358 'theme_dir' => 'nonexistent', 355 359 'file' => '/templates/page.html', 356 360 'expected' => '/nonexistent/templates/page.html', 357 361 ), 358 'parent theme: file exists' => array(362 'parent theme: file exists' => array( 359 363 'theme_dir' => 'block-theme', 360 364 'file' => '/templates/page-home.html', 361 365 'expected' => '/block-theme/templates/page-home.html', 362 366 ), 363 'parent theme: file does not exist' => array( 367 'parent theme: deprecated file exists' => array( 368 'theme_dir' => 'block-theme-deprecated-path', 369 'file' => '/block-templates/page-home.html', 370 'expected' => '/block-theme-deprecated-path/block-templates/page-home.html', 371 ), 372 'parent theme: file does not exist' => array( 364 373 'theme_dir' => 'block-theme', 365 374 'file' => '/templates/nonexistent.html', 366 375 'expected' => '/block-theme/templates/nonexistent.html', 367 376 ), 368 'child theme: file exists' => array(377 'child theme: file exists' => array( 369 378 'theme_dir' => 'block-theme-child', 370 379 'file' => '/templates/page-1.html', 371 380 'expected' => '/block-theme-child/templates/page-1.html', 372 381 ), 373 'child theme: file does not exist' => array(382 'child theme: file does not exist' => array( 374 383 'theme_dir' => 'block-theme-child', 375 384 'file' => '/templates/nonexistent.html',
Note: See TracChangeset
for help on using the changeset viewer.