Changeset 11737 for trunk/tests/phpunit/testcases/admin/functions.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/admin/functions.php
r11513 r11737 9 9 parent::setUp(); 10 10 $this->old_current_user = get_current_user_id(); 11 $this->set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );11 $this->set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 12 12 13 13 if ( ! function_exists( 'bp_admin' ) ) { … … 139 139 $bp->foo->name = 'Foo'; 140 140 $bp->active_components[ $bp->foo->id ] = 1; 141 $new_page_ids = array( $bp->foo->id => $this->factory->post->create( array(141 $new_page_ids = array( $bp->foo->id => self::factory()->post->create( array( 142 142 'post_type' => 'page', 143 143 'post_title' => $bp->foo->name,
Note: See TracChangeset
for help on using the changeset viewer.