- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/template/bpUserHasAccess.php
r9989 r11737 6 6 class BP_Tests_Core_Template_BpUserHasAccess extends BP_UnitTestCase { 7 7 public function test_should_return_true_for_bp_moderate_user() { 8 $users = $this->factory->user->create_many( 2 );8 $users = self::factory()->user->create_many( 2 ); 9 9 10 10 $this->grant_bp_moderate( $users[0] ); … … 17 17 18 18 public function test_should_return_false_on_anothers_profile_for_user_without_bp_moderate() { 19 $users = $this->factory->user->create_many( 2 );19 $users = self::factory()->user->create_many( 2 ); 20 20 21 21 $this->set_current_user( $users[0] ); … … 27 27 28 28 public function test_should_return_true_on_own_profile() { 29 $users = $this->factory->user->create_many( 2 );29 $users = self::factory()->user->create_many( 2 ); 30 30 31 31 $this->set_current_user( $users[0] );
Note: See TracChangeset
for help on using the changeset viewer.