Testing for the mailbox list.
authorGunnar Wrobel <p@rdus.de>
Tue, 21 Dec 2010 20:08:40 +0000 (21:08 +0100)
committerGunnar Wrobel <p@rdus.de>
Tue, 4 Jan 2011 07:54:12 +0000 (08:54 +0100)
framework/Kolab_Storage/test/Horde/Kolab/Storage/Unit/Driver/MockTest.php

index 0d76c6b..94c4f3b 100644 (file)
@@ -33,8 +33,26 @@ require_once dirname(__FILE__) . '/../../Autoload.php';
  * @link       http://pear.horde.org/index.php?package=Kolab_Storage
  */
 class Horde_Kolab_Storage_Unit_Driver_MockTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Kolab_Storage_TestCase
 {
+    public function testGetMailboxesReturnsArray()
+    {
+        $this->assertType('array', $this->getNullMock()->getMailboxes());
+    }
+
+    public function testGetMailboxesEmpty()
+    {
+        $this->assertEquals(array(), $this->getEmptyMock()->getMailboxes());
+    }
+
+    public function testGetMailboxesReturnsMailboxes()
+    {
+        $this->assertEquals(
+            array('INBOX', 'INBOX/a'),
+            $this->getTwoFolderMock()->getMailboxes()
+        );
+    }
+
     public function testGetAnnotationReturnsAnnotationValue()
     {
         $this->markTestIncomplete();