Changeset 39017
- Timestamp:
- 10/30/2016 02:03:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/custom-css-setting.php
r38858 r39017 31 31 parent::setUp(); 32 32 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 33 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 33 34 $user_id = self::factory()->user->create( array( 35 'role' => 'administrator', 36 ) ); 37 if ( is_multisite() ) { 38 grant_super_admin( $user_id ); 39 } 40 41 wp_set_current_user( $user_id ); 34 42 35 43 global $wp_customize; … … 116 124 $updated_css = 'body { color: blue; }'; 117 125 $this->wp_customize->set_post_value( $this->setting->id, $updated_css ); 118 $this->setting->save(); 126 $saved = $this->setting->save(); 127 128 $this->assertNotFalse( $saved ); 119 129 $this->assertEquals( $updated_css, $this->setting->value() ); 120 130 $this->assertEquals( $updated_css, wp_get_custom_css( $this->setting->stylesheet ) );
Note: See TracChangeset
for help on using the changeset viewer.