Changeset 11737 for trunk/tests/phpunit/testcases/core/class-bp-button.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-button.php
r11117 r11737 10 10 */ 11 11 public function test_block_self_own_profile() { 12 $u = $this->factory->user->create();12 $u = self::factory()->user->create(); 13 13 $this->set_current_user( $u ); 14 14 … … 28 28 */ 29 29 public function test_block_self_others_profile() { 30 $u1 = $this->factory->user->create();31 $this->set_current_user( $u1 ); 32 33 $u2 = $this->factory->user->create();30 $u1 = self::factory()->user->create(); 31 $this->set_current_user( $u1 ); 32 33 $u2 = self::factory()->user->create(); 34 34 $this->go_to( bp_core_get_user_domain( $u2 ) ); 35 35 … … 48 48 public function test_block_self_inside_members_loop() { 49 49 $now = time(); 50 $u1 = $this->factory->user->create( array(50 $u1 = self::factory()->user->create( array( 51 51 'last_activity' => date( 'Y-m-d H:i:s', $now ), 52 52 ) ); 53 $u2 = $this->factory->user->create( array(53 $u2 = self::factory()->user->create( array( 54 54 'last_activity' => date( 'Y-m-d H:i:s', $now - 100 ), 55 55 ) ); … … 88 88 public function test_block_self_false_inside_members_loop() { 89 89 $now = time(); 90 $u1 = $this->factory->user->create( array(90 $u1 = self::factory()->user->create( array( 91 91 'last_activity' => date( 'Y-m-d H:i:s', $now ), 92 92 ) ); 93 $u2 = $this->factory->user->create( array(93 $u2 = self::factory()->user->create( array( 94 94 'last_activity' => date( 'Y-m-d H:i:s', $now - 100 ), 95 95 ) ); … … 128 128 public function test_block_self_inside_members_loop_on_my_profile_page() { 129 129 $now = time(); 130 $u1 = $this->factory->user->create( array(130 $u1 = self::factory()->user->create( array( 131 131 'last_activity' => date( 'Y-m-d H:i:s', $now ), 132 132 ) ); 133 $u2 = $this->factory->user->create( array(133 $u2 = self::factory()->user->create( array( 134 134 'last_activity' => date( 'Y-m-d H:i:s', $now - 100 ), 135 135 ) );
Note: See TracChangeset
for help on using the changeset viewer.