Skip to content
Snippets Groups Projects
RechercheControllerReservationTest.php 34.6 KiB
Newer Older
    $this->assertContains("adminpukapuka@example.com",current($this->_sent_mails)->getRecipients()[0]);
  }

  /** @test */
  public function mailFromShouldBeMailAdminAtExampleDotCom() {
    $this->assertContains("admin@example.com",current($this->_sent_mails)->getFrom());
  }


  public function expectedData() {
    return [['Titre : Mireille l\'Abeille'],
            ['Annexe de retrait : BDM'],
            ['Julian Monsieur 00004'],
            ['Code Barre : 12341'],
            ['Type de Document : Livres'],
    ];
  }


  /**
   * @test
   * @dataProvider expectedData
   */
  public function mailBodyShouldContainsContent($content) {
    $this->assertContains($content,quoted_printable_decode(current($this->_sent_mails)->getBodyHtml(true)));
  }