Changeset 11737 for trunk/tests/phpunit/testcases/core/nav/bpCoreMaybeHookNewSubnavScreenFunction.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/nav/bpCoreMaybeHookNewSubnavScreenFunction.php
r11091 r11737 54 54 55 55 public function test_user_has_access_false_user_logged_in_my_profile() { 56 $u = $this->factory->user->create();56 $u = self::factory()->user->create(); 57 57 $old_current_user = get_current_user_id(); 58 58 $this->set_current_user( $u ); … … 73 73 74 74 public function test_user_has_access_false_user_logged_in_others_profile_default_component_accessible() { 75 $u1 = $this->factory->user->create();76 $u2 = $this->factory->user->create();75 $u1 = self::factory()->user->create(); 76 $u2 = self::factory()->user->create(); 77 77 $old_current_user = get_current_user_id(); 78 78 $this->set_current_user( $u1 ); … … 108 108 109 109 public function test_user_has_access_false_user_logged_in_others_profile_default_component_not_accessible() { 110 $u1 = $this->factory->user->create();111 $u2 = $this->factory->user->create();110 $u1 = self::factory()->user->create(); 111 $u2 = self::factory()->user->create(); 112 112 $old_current_user = get_current_user_id(); 113 113 $this->set_current_user( $u1 ); … … 144 144 145 145 public function test_user_has_access_false_user_logged_in_group() { 146 $u = $this->factory->user->create();147 $g = $this->factory->group->create();146 $u = self::factory()->user->create(); 147 $g = self::factory()->group->create(); 148 148 $old_current_user = get_current_user_id(); 149 149 $this->set_current_user( $u ); … … 168 168 169 169 public function test_user_has_access_false_user_logged_in_group_no_redirect_url_provided() { 170 $u = $this->factory->user->create();171 $g = $this->factory->group->create();170 $u = self::factory()->user->create(); 171 $g = self::factory()->group->create(); 172 172 $old_current_user = get_current_user_id(); 173 173 $this->set_current_user( $u );
Note: See TracChangeset
for help on using the changeset viewer.