From 0034aa69e9cb11e364430458dda71c0ed4981f92 Mon Sep 17 00:00:00 2001 From: Lewis Cowles Date: Sun, 24 May 2015 12:05:01 +0100 Subject: [PATCH] Update MessageTest.php --- tests/Fetch/Test/MessageTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Fetch/Test/MessageTest.php b/tests/Fetch/Test/MessageTest.php index 27edcb4..caa5c1b 100644 --- a/tests/Fetch/Test/MessageTest.php +++ b/tests/Fetch/Test/MessageTest.php @@ -175,14 +175,18 @@ class MessageTest extends \PHPUnit_Framework_TestCase // Testing by moving message from "Test Folder" to "Sent" // Count Test Folder + $server->setMailbox('Test Folder'); $testFolderNumStart = $server->numMessages('Test Folder'); + $this->assertEquals($testFolderNumStart, $server->numMessages(), 'Server presents consistent information between numMessages when mailbox set and directly queried for number of messages'); // Get message from Test Folder $message = current($server->getMessages(1)); $this->assertInstanceOf('\Fetch\Message', $message, 'Server returned Message.'); // Switch to Sent folder, count messages + $server->setMailbox('Sent'); $sentFolderNumStart = $server->numMessages('Sent'); + $this->assertEquals($sentFolderNumStart, $server->numMessages(), 'Server presents consistent information between numMessages when mailbox set and directly queried for number of messages'); // Switch to "Flagged" folder in order to test that function properly returns to it $this->assertTrue($server->setMailBox('Flagged Email'));