Horde_Share_TestBase::permissionsGroupShare PHP Method

permissionsGroupShare() protected method

protected permissionsGroupShare ( )
    protected function permissionsGroupShare()
    {
        // Foreign share with group permissions.
        $groupshare = self::$share->newShare('jane', 'groupshare', 'Group Share');
        $groupshare->addGroupPermission('mygroup', Horde_Perms::SHOW | Horde_Perms::READ | Horde_Perms::DELETE);
        $groupshare->save();
        $this->assertTrue($groupshare->hasPermission('john', Horde_Perms::SHOW));
        $this->assertTrue($groupshare->hasPermission('john', Horde_Perms::READ));
        $this->assertFalse($groupshare->hasPermission('john', Horde_Perms::EDIT));
        $this->assertTrue($groupshare->hasPermission('john', Horde_Perms::DELETE));
    }