@@ -116,7 +116,7 @@ public function testGetMessages()
116
116
public function testGetMessagesOrderedByDateAsc ()
117
117
{
118
118
$ server = static ::getServer ();
119
- $ messages = $ server ->getOrdered (SORTDATE , false , 2 );
119
+ $ messages = $ server ->getOrderedMessages (SORTDATE , false , 2 );
120
120
121
121
$ this ->assertCount (2 , $ messages , 'Two messages returned ' );
122
122
$ this ->assertGreaterThan ($ messages [0 ]->getDate (), $ messages [1 ]->getDate (), 'Messages in ascending order ' );
@@ -125,7 +125,7 @@ public function testGetMessagesOrderedByDateAsc()
125
125
public function testGetMessagesOrderedByDateDesc ()
126
126
{
127
127
$ server = static ::getServer ();
128
- $ messages = $ server ->getOrdered (SORTDATE , true , 2 );
128
+ $ messages = $ server ->getOrderedMessages (SORTDATE , true , 2 );
129
129
130
130
$ this ->assertCount (2 , $ messages , 'Two messages returned ' );
131
131
$ this ->assertLessThan ($ messages [0 ]->getDate (), $ messages [1 ]->getDate (), 'Messages in descending order ' );
@@ -164,12 +164,12 @@ public function testHasMailBox()
164
164
$ this ->assertFalse ($ server ->hasMailBox ('Cheese ' ), 'Does not have mailbox "Cheese" ' );
165
165
}
166
166
167
- public function testListMailbox ()
167
+ public function testListMailBoxes ()
168
168
{
169
169
$ server = static ::getServer ();
170
170
$ spec = sprintf ('{%s:143/novalidate-cert} ' , TESTING_SERVER_HOST );
171
171
172
- $ list = $ server ->listMailbox ('* ' );
172
+ $ list = $ server ->listMailboxes ('* ' );
173
173
$ this ->assertContains ($ spec .'Sent ' , $ list , 'Has mailbox "Sent" ' );
174
174
$ this ->assertNotContains ($ spec .'Cheese ' , $ list , 'Does not have mailbox "Cheese" ' );
175
175
}
0 commit comments