public function OgAccessTest::testUserAccessUser1 in Organic groups 8
Tests access by the super user, which is user ID 1.
@coversDefaultmethod ::userAccess @dataProvider permissionsProvider
File
- tests/
src/ Unit/ OgAccessTest.php, line 49
Class
- OgAccessTest
- Tests access.
Namespace
Drupal\Tests\og\UnitCode
public function testUserAccessUser1($operation) {
$this->user
->id()
->willReturn(1);
$user_access = $this->ogAccess
->userAccess($this->group, $operation, $this->user
->reveal());
$this
->assertTrue($user_access
->isAllowed());
}