Changeset 35225 for trunk/tests/phpunit/tests/customize/manager.php
- Timestamp:
- 10/16/2015 09:04:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r34269 r35225 252 252 */ 253 253 function test_return_url() { 254 wp_set_current_user( $this->factory->user->create( array( 'role' => 'author' ) ) );254 wp_set_current_user( self::$factory->user->create( array( 'role' => 'author' ) ) ); 255 255 $this->assertEquals( get_admin_url(), $this->manager->get_return_url() ); 256 256 257 wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );257 wp_set_current_user( self::$factory->user->create( array( 'role' => 'administrator' ) ) ); 258 258 $this->assertTrue( current_user_can( 'edit_theme_options' ) ); 259 259 $this->assertEquals( admin_url( 'themes.php' ), $this->manager->get_return_url() ); … … 302 302 */ 303 303 function test_customize_pane_settings() { 304 wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );304 wp_set_current_user( self::$factory->user->create( array( 'role' => 'administrator' ) ) ); 305 305 $this->manager->register_controls(); 306 306 $this->manager->prepare_controls();
Note: See TracChangeset
for help on using the changeset viewer.