Changeset 814 in tests
- Timestamp:
- 06/30/2012 09:07:53 PM (12 years ago)
- Location:
- trunk/wp-testcase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-testcase/test_admin_includes_theme.php
r780 r814 1 1 <?php 2 // Test functions that fetch stuff from the theme directory 2 /** 3 * @group themes 4 */ 3 5 class TestPageTemplates extends WP_UnitTestCase { 4 6 function setUp() { -
trunk/wp-testcase/test_includes_class-wp-theme.php
r778 r814 1 1 <?php 2 /** 3 * @group themes 4 */ 2 5 class Test_WP_Theme extends WP_UnitTestCase { 3 6 function setUp() { -
trunk/wp-testcase/test_includes_theme.php
r779 r814 1 1 <?php 2 2 3 // test wp-includes/theme.php 3 /** 4 * test wp-includes/theme.php 5 * 6 * @group themes 7 */ 4 8 class TestDefaultThemes extends WP_UnitTestCase { 5 9 … … 236 240 } 237 241 238 // Test functions that fetch stuff from the theme directory 242 /** 243 * Test functions that fetch stuff from the theme directory 244 * 245 * @group themes 246 */ 239 247 class TestThemeDir extends WP_UnitTestCase { 240 248 function setUp() { … … 431 439 } 432 440 441 /** 442 * @group themes 443 */ 433 444 class TestLargeThemeDir extends WP_UnitTestCase { 434 445 function setUp() { … … 492 503 } 493 504 505 /** 506 * @group themes 507 */ 494 508 class TestThemeSupport extends WP_UnitTestCase { 495 509 function setUp() { … … 502 516 503 517 function test_the_basics() { 504 $this->assertFalse( current_theme_supports( 'automatic-feed-links' ) );505 518 add_theme_support( 'automatic-feed-links' ); 506 519 $this->assertTrue( current_theme_supports( 'automatic-feed-links' ) ); 507 520 remove_theme_support( 'automatic-feed-links' ); 508 521 $this->assertFalse( current_theme_supports( 'automatic-feed-links' ) ); 522 add_theme_support( 'automatic-feed-links' ); 523 $this->assertTrue( current_theme_supports( 'automatic-feed-links' ) ); 509 524 } 510 525 511 526 function test_admin_bar() { 512 $this->assertFalse( current_theme_supports( 'admin-bar' ) );513 527 add_theme_support( 'admin-bar' ); 514 528 $this->assertTrue( current_theme_supports( 'admin-bar' ) ); 515 529 remove_theme_support( 'admin-bar' ); 516 530 $this->assertFalse( current_theme_supports( 'admin-bar' ) ); 531 add_theme_support( 'admin-bar' ); 532 $this->assertTrue( current_theme_supports( 'admin-bar' ) ); 517 533 518 534 add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) ); … … 529 545 530 546 function test_post_thumbnails() { 531 $this->assertFalse( current_theme_supports( 'post-thumbnails' ) );532 547 add_theme_support( 'post-thumbnails' ); 533 548 $this->assertTrue( current_theme_supports( 'post-thumbnails' ) ); 534 549 remove_theme_support( 'post-thumbnails' ); 535 550 $this->assertFalse( current_theme_supports( 'post-thumbnails' ) ); 551 add_theme_support( 'post-thumbnails' ); 552 $this->assertTrue( current_theme_supports( 'post-thumbnails' ) ); 536 553 537 554 // simple array of post types.
Note: See TracChangeset
for help on using the changeset viewer.