diff --git tests/phpunit/tests/theme.php tests/phpunit/tests/theme.php
index a9136d1..2e76f7c 100644
|
|
class Tests_Theme extends WP_UnitTestCase { |
302 | 302 | |
303 | 303 | $theme = wp_get_theme(); |
304 | 304 | $this->assertEquals( $style, (string) $theme ); |
305 | | $this->assertNotSame( false, $theme->errors() ); |
| 305 | $this->assertNotFalse( $theme->errors() ); |
306 | 306 | $this->assertFalse( $theme->exists() ); |
307 | 307 | |
308 | 308 | // these return the bogus name - perhaps not ideal behaviour? |
diff --git tests/phpunit/tests/theme/support.php tests/phpunit/tests/theme/support.php
index 648f031..9b7eb24 100644
|
|
class Tests_Theme_Support extends WP_UnitTestCase { |
90 | 90 | remove_theme_support( 'html5' ); |
91 | 91 | $this->assertFalse( current_theme_supports( 'html5' ) ); |
92 | 92 | $this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) ); |
93 | | $this->assertNotSame( false, add_theme_support( 'html5' ) ); |
| 93 | $this->assertNotFalse( add_theme_support( 'html5' ) ); |
94 | 94 | $this->assertTrue( current_theme_supports( 'html5' ) ); |
95 | 95 | $this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) ); |
96 | 96 | $this->assertTrue( current_theme_supports( 'html5', 'comment-list' ) ); |
… |
… |
class Tests_Theme_Support extends WP_UnitTestCase { |
108 | 108 | $this->assertFalse( current_theme_supports( 'html5' ) ); |
109 | 109 | $this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) ); |
110 | 110 | $this->assertFalse( add_theme_support( 'html5', 'comment-form' ) ); |
111 | | $this->assertNotSame( false, add_theme_support( 'html5', array( 'comment-form' ) ) ); |
| 111 | $this->assertNotFalse( add_theme_support( 'html5', array( 'comment-form' ) ) ); |
112 | 112 | $this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) ); |
113 | 113 | |
114 | 114 | // This will return true, which might help a plugin author decide what markup to serve, |
… |
… |
class Tests_Theme_Support extends WP_UnitTestCase { |
117 | 117 | |
118 | 118 | // It appends, rather than replaces. |
119 | 119 | $this->assertFalse( current_theme_supports( 'html5', 'comment-list' ) ); |
120 | | $this->assertNotSame( false, add_theme_support( 'html5', array( 'comment-list' ) ) ); |
| 120 | $this->assertNotFalse( add_theme_support( 'html5', array( 'comment-list' ) ) ); |
121 | 121 | $this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) ); |
122 | 122 | $this->assertTrue( current_theme_supports( 'html5', 'comment-list' ) ); |
123 | 123 | $this->assertFalse( current_theme_supports( 'html5', 'search-form' ) ); |