| | 1 | <?php |
| | 2 | |
| | 3 | /** |
| | 4 | * @group themes |
| | 5 | */ |
| | 6 | class Tests_WP_Theme_Get_Theme_Starter_Content extends WP_UnitTestCase { |
| | 7 | |
| | 8 | |
| | 9 | function test_add_theme_support_empty() { |
| | 10 | add_theme_support( 'starter-content', array() ); |
| | 11 | |
| | 12 | $starter_content = get_theme_starter_content(); |
| | 13 | |
| | 14 | $this->assertEmpty( $starter_content ); |
| | 15 | } |
| | 16 | |
| | 17 | function test_add_theme_support_single_param() { |
| | 18 | add_theme_support( 'starter-content' ); |
| | 19 | |
| | 20 | $starter_content = get_theme_starter_content(); |
| | 21 | |
| | 22 | $this->assertEmpty( $starter_content ); |
| | 23 | } |
| | 24 | } |
| | 25 | |