[wp-trac] [WordPress Trac] #29925: Setting WP_DEFAULT_THEME to a custom theme causes test to fail

WordPress Trac noreply at wordpress.org
Sat Oct 11 03:57:37 UTC 2014


#29925: Setting WP_DEFAULT_THEME to a custom theme causes test to fail
------------------------------+-----------------------------
 Reporter:  mboynes           |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Today I ran core's unit tests with Underscores active and the following
 test failed:

 {{{
 There was 1 failure:

 1) Tests_Theme::test_default_themes_have_textdomain
 Failed asserting that an array contains '_s'.

 /var/www/wordpress-develop/tests/phpunit/tests/theme.php:166
 }}}

 This test is directly asserting that `WP_DEFAULT_THEME` is one of the
 included themes. I see no reason for this, especially in this test which
 offers no reference to `WP_DEFAULT_THEME` and is checking that the default
 themes have a textdomain.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29925>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list