Changeset 45090 for trunk/tests/phpunit/tests/post/getBodyClass.php
- Timestamp:
- 04/01/2019 04:48:32 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getBodyClass.php
r45088 r45090 211 211 set_theme_mod( 'background_color', '#000000' ); 212 212 213 $class = get_body_class();214 $ current_theme_supports_custom_background = current_theme_supports( 'custom-background' );213 $class = get_body_class(); 214 $theme_supports_background = current_theme_supports( 'custom-background' ); 215 215 216 216 remove_theme_mod( 'background_color' ); 217 217 remove_theme_support( 'custom-background' ); 218 218 219 $this->assertTrue( $ current_theme_supports_custom_background );219 $this->assertTrue( $theme_supports_background ); 220 220 $this->assertContains( 'custom-background', $class ); 221 221 } … … 227 227 set_theme_mod( 'background_color', '#000000' ); 228 228 229 $class = get_body_class();230 $ current_theme_supports_custom_background = current_theme_supports( 'custom-background' );229 $class = get_body_class(); 230 $theme_supports_background = current_theme_supports( 'custom-background' ); 231 231 232 232 remove_theme_mod( 'background_color' ); 233 233 234 $this->assertFalse( $ current_theme_supports_custom_background );234 $this->assertFalse( $theme_supports_background ); 235 235 $this->assertNotContains( 'custom-background', $class ); 236 236 }
Note: See TracChangeset
for help on using the changeset viewer.