*/
public function setUp()
{
- // No 'auth' in world, so this won't work yet. Skip it.
- $this->markTestSkipped();
+ /* $world = $this->prepareBasicSetup(); */
- $world = $this->prepareBasicSetup();
+ /* /\** Prepare a Kolab test storage *\/ */
+ /* $params = array('driver' => 'Mock', */
+ /* 'username' => 'wrobel@example.org', */
+ /* 'password' => 'none'); */
+ /* $storage1 = Horde_Kolab_Storage::singleton('imap', $params); */
- /** Prepare a Kolab test storage */
- $params = array('driver' => 'Mock',
- 'username' => 'wrobel@example.org',
- 'password' => 'none');
- $storage1 = Horde_Kolab_Storage::singleton('imap', $params);
+ /* $folder = $this->prepareNewFolder($storage1, 'Contacts', 'contact', true); */
+ /* $perms = $folder->getPermission(); */
+ /* $perms->addUserPermission('test@example.org', Horde_Perms::SHOW); */
+ /* $perms->save(); */
- $folder = $this->prepareNewFolder($storage1, 'Contacts', 'contact', true);
- $perms = $folder->getPermission();
- $perms->addUserPermission('test@example.org', Horde_Perms::SHOW);
- $perms->save();
+ /* $folder = $this->prepareNewFolder($storage1, 'Calendar', 'event', true); */
+ /* $perms = $folder->getPermission(); */
+ /* $perms->addUserPermission('test@example.org', Horde_Perms::SHOW); */
+ /* $perms->save(); */
- $folder = $this->prepareNewFolder($storage1, 'Calendar', 'event', true);
- $perms = $folder->getPermission();
- $perms->addUserPermission('test@example.org', Horde_Perms::SHOW);
- $perms->save();
+ /* /\** Prepare a Kolab test storage *\/ */
+ /* $storage2 = $this->authenticate($world['auth'], */
+ /* 'test@example.org', */
+ /* 'test'); */
- /** Prepare a Kolab test storage */
- $storage2 = $this->authenticate($world['auth'],
- 'test@example.org',
- 'test');
+ /* $this->prepareNewFolder($storage2, 'Contacts', 'contact', true); */
+ /* $this->prepareNewFolder($storage2, 'TestContacts', 'contact'); */
+ /* $this->prepareNewFolder($storage2, 'Calendar', 'event', true); */
+ /* $this->prepareNewFolder($storage2, 'TestCalendar', 'event'); */
- $this->prepareNewFolder($storage2, 'Contacts', 'contact', true);
- $this->prepareNewFolder($storage2, 'TestContacts', 'contact');
- $this->prepareNewFolder($storage2, 'Calendar', 'event', true);
- $this->prepareNewFolder($storage2, 'TestCalendar', 'event');
-
- $this->storage = &$storage2;
+ /* $this->storage = &$storage2; */
}
/**
*/
public function tearDown()
{
- Horde_Imap_Client_Mock::clean();
- if ($this->storage) {
- $this->storage->clean();
- }
+ /* Horde_Imap_Client_Mock::clean(); */
+ /* if ($this->storage) { */
+ /* $this->storage->clean(); */
+ /* } */
}
/**
*/
public function testConstruct()
{
+ $this->markTestSkipped();
+
$this->assertTrue($this->storage instanceOf Horde_Kolab_Storage);
}
*/
public function testListFolders()
{
+ $this->markTestSkipped();
+
$folders = $this->storage->listFolders();
$this->assertContains('INBOX/Contacts', $folders);
}
*/
public function testGetFolders()
{
- $folders = $this->storage->getFolders();
+ $this->markTestSkipped();
+
+ $storage = new Horde_Kolab_Storage(
+ 'Imap',
+ array(
+ 'username' => 'test',
+ 'password' => 'test',
+ )
+ );
+ $folders = $storage->getFolders();
$this->assertEquals(6, count($folders));
$folder_names = array();
foreach ($folders as $folder) {
$this->assertContains('INBOX/Contacts', $folder_names);
}
+ public function testGetFolder()
+ {
+ $storage = new Horde_Kolab_Storage(
+ 'Imap',
+ array(
+ 'username' => 'test',
+ 'password' => 'test',
+ )
+ );
+ $folder = $storage->getFolder('INBOX');
+ $this->assertEquals('INBOX', $folder->name);
+ }
+
/**
* Test retrieving by share ID.
*
*/
public function testGetByShare()
{
+ $this->markTestSkipped();
+
$folder = $this->storage->getByShare('test@example.org', 'event');
$this->assertEquals('INBOX/Calendar', $folder->name);
}
*/
public function testGetByType()
{
+ $this->markTestSkipped();
+
$folders = $this->storage->getByType('event');
$this->assertEquals(3, count($folders));
$names = array();
*/
public function testGetDefault()
{
+ $this->markTestSkipped();
+
$folder = $this->storage->getDefault('event');
$this->assertEquals('INBOX/Calendar', $folder->name);
$folder = $this->storage->getDefault('contact');
*/
public function testGetForeignOwner()
{
+ $this->markTestSkipped();
+
$folder = $this->storage->getFolder('user/wrobel');
$this->assertEquals('wrobel@example.org', $folder->getOwner());
}
*/
public function testGetForeignDefault()
{
+ $this->markTestSkipped();
+
$folder = $this->storage->getForeignDefault('wrobel@example.org', 'event');
$this->assertEquals('user/wrobel/Calendar', $folder->name);
$this->assertEquals('user%2Fwrobel%2FCalendar', $folder->getShareId());
*/
public function testCreate()
{
+ $this->markTestSkipped();
+
$folder = $this->storage->getNewFolder();
$folder->setName('Notes');
$folder->save(array());
*/
public function testCacheAdd()
{
+ $this->markTestSkipped();
+
$params = array('driver' => 'Mock',
'username' => 'cacheadd@example.org',
'password' => 'none');
*/
public function testCacheDelete()
{
+ $this->markTestSkipped();
+
$params = array('driver' => 'Mock',
'username' => 'cachedel@example.org',
'password' => 'none');
*/
public function testRename()
{
+ $this->markTestSkipped();
+
$folder = &$this->storage->getFolder('INBOX/TestContacts');
$folder->setName('TestNotes');
$folder->save(array());
*/
public function testRemove()
{
+ $this->markTestSkipped();
+
$folder = &$this->storage->getFolder('INBOX/Calendar');
$this->assertTrue($folder->exists());
$this->assertTrue($folder->isDefault());
*/
public function testCaching()
{
+ $this->markTestSkipped();
+
$params = array('driver' => 'Mock',
'username' => 'cache@example.org',
'password' => 'none');