Horde_Share_TestBase::_getShares PHP Method

_getShares() protected method

protected _getShares ( )
    protected function _getShares()
    {
        $newshares = self::$share->getShares(array(self::$shares['myshare']->getId(), self::$shares['janeshare']->getId(), self::$shares['groupshare']->getId()));
        $this->assertEquals(array('myshare', 'janeshare', 'groupshare'), array_keys($newshares));
        $this->assertInstanceOf('Horde_Share_Object', $newshares['myshare']);
        $this->assertEquals(self::$shares['myshare'], $newshares['myshare']);
        $newshares['janeshare']->getPermission();
        $this->assertEquals(self::$shares['janeshare'], $newshares['janeshare']);
        $newshares['groupshare']->getPermission();
        $this->assertEquals(self::$shares['groupshare'], $newshares['groupshare']);
    }