protected function removeUserPermissionsJane()
{
$janeshare = self::$shares['jane']['janeshare'];
$janeshare->removeUserPermission('john', Horde_Perms::EDIT);
$janeshare->save();
$this->switchAuth('john');
// Getting shares from cache.
$this->assertEquals(5, count(self::$share->listShares('john', array('perm' => Horde_Perms::READ))));
$this->assertEquals(2, count(self::$share->listShares('john', array('perm' => Horde_Perms::EDIT))));
// Reset cache.
self::$share->resetCache();
// Getting shares from backend.
$this->assertEquals(5, count(self::$share->listShares('john', array('perm' => Horde_Perms::READ))));
$this->assertEquals(2, count(self::$share->listShares('john', array('perm' => Horde_Perms::EDIT))));
$janeshare->removeUser('john');
$janeshare->save();
}