Пример #1
0
 /**
  * @covers DmMailer\Repository\Subscriber
  */
 public function testAdminPageExecutesSearch()
 {
     $actualResult = $this->sut->getAdminPage(['s.entityId = 1']);
     $this->assertInstanceOf('Doctrine\\ORM\\Query', $actualResult);
     /** @var \DmMailer\Entity\Subscriber $queryResult */
     $queryResult = $actualResult->getOneOrNullResult();
     $this->assertInstanceOf('DmMailer\\Entity\\Subscriber', $queryResult);
     $this->assertEquals('*****@*****.**', $queryResult->getEmailAddress());
 }