/**
  * @test
  */
 public function it_gets_the_messages_by_subject_and_sets_them_as_read()
 {
     $imap = $this->getImap();
     /** @noinspection PhpUndefinedMethodInspection */
     $imap->shouldReceive('sort')->with('SUBJECT "subject 1"', SORTDATE, true, 0)->andReturn([1, 2]);
     $mailboxManager = new ImapMailboxService($imap);
     $this->assertEquals([1, 2], $mailboxManager->getMessagesBySubject('subject 1', SORTDATE, true, false));
 }