From 1ee295627beaed783ccd8de4de75068ca95e4aa8 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Tue, 21 Dec 2010 21:08:40 +0100 Subject: [PATCH] Testing for the mailbox list. --- .../Horde/Kolab/Storage/Unit/Driver/MockTest.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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(); -- 2.11.0