Fix tests

This commit is contained in:
Jeremy Benoist 2019-07-09 14:02:58 +02:00
parent 66fa0c26ab
commit 2f62f3abfe
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -30,7 +30,7 @@ class DeveloperControllerTest extends WallabagCoreTestCase
$newNbClients = $em->getRepository('WallabagApiBundle:Client')->findAll(); $newNbClients = $em->getRepository('WallabagApiBundle:Client')->findAll();
$this->assertGreaterThan(\count($nbClients), \count($newNbClients)); $this->assertGreaterThan(\count($nbClients), \count($newNbClients));
$this->assertGreaterThan(1, $alert = $crawler->filter('.settings ul li strong')->extract(['_text'])); $this->assertGreaterThan(1, $alert = $crawler->filter('.settings table strong')->extract(['_text']));
$this->assertContains('My app', $alert[0]); $this->assertContains('My app', $alert[0]);
} }