Elgg\UserCapabilitiesTest::testCanUserEditSelf PHP Méthode

testCanUserEditSelf() public méthode

public testCanUserEditSelf ( )
    public function testCanUserEditSelf()
    {
        $user = $this->mocks()->getUser();
        $viewer = $this->mocks()->getUser();
        $this->assertTrue($user->canEdit($user->guid));
        $this->assertFalse($user->canEdit($viewer->guid));
    }