diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index 5e937cffab..68222702fa 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -8,6 +8,7 @@ class Tests_Theme extends WP_UnitTestCase { protected $theme_slug = 'twentyeleven'; protected $theme_name = 'Twenty Eleven'; + protected $default_themes = array( 'twentyten', 'twentyeleven', 'twentytwelve', 'twentythirteen', 'twentyfourteen' ); function setUp() { parent::setUp(); @@ -161,6 +162,13 @@ class Tests_Theme extends WP_UnitTestCase { $this->assertEquals( content_url( 'themes/' . $this->theme_slug ), $theme->get_template_directory_uri(), 'get_template_directory_uri' ); } + function test_default_themes_have_textdomain() { + $this->assertContains( WP_DEFAULT_THEME, $this->default_themes ); + foreach ( $this->default_themes as $theme ) { + $this->assertEquals( $theme, wp_get_theme( $theme )->get( 'TextDomain' ) ); + } + } + /** * @ticket 20897 * @expectedDeprecated get_theme_data