From: Gunnar Wrobel Date: Tue, 21 Dec 2010 20:08:40 +0000 (+0100) Subject: Testing for the mailbox list. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1ee295627beaed783ccd8de4de75068ca95e4aa8;p=horde.git Testing for the mailbox list. --- diff --git a/framework/Kolab_Storage/test/Horde/Kolab/Storage/Unit/Driver/MockTest.php b/framework/Kolab_Storage/test/Horde/Kolab/Storage/Unit/Driver/MockTest.php index 0d76c6bac..94c4f3bc4 100644 --- a/framework/Kolab_Storage/test/Horde/Kolab/Storage/Unit/Driver/MockTest.php +++ b/framework/Kolab_Storage/test/Horde/Kolab/Storage/Unit/Driver/MockTest.php @@ -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();