/**
  * @test
  */
 public function it_gets_read_messages_and_sorts_them_by_ascending_size()
 {
     $imap = $this->getImap();
     /** @noinspection PhpUndefinedMethodInspection */
     $imap->shouldReceive('sort')->with('SEEN', SORTSIZE, false, 0)->andReturn([1, 2]);
     $mailboxManager = new ImapMailboxService($imap);
     $this->assertEquals([1, 2], $mailboxManager->getReadMessages(SORTSIZE, false));
 }