diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 7c105ac78..0a75c88d7 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -1641,7 +1641,7 @@ class EntryControllerTest extends WallabagCoreTestCase $client->request('GET', '/annotated/random'); $this->assertSame(302, $client->getResponse()->getStatusCode()); - $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random'); + $this->assertStringContainsString('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random'); $client->request('GET', '/all/random'); $this->assertSame(302, $client->getResponse()->getStatusCode()); diff --git a/tests/Wallabag/ImportBundle/Controller/DeliciousControllerTest.php b/tests/Wallabag/ImportBundle/Controller/DeliciousControllerTest.php index a8029f45e..1d14d1d8a 100644 --- a/tests/Wallabag/ImportBundle/Controller/DeliciousControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/DeliciousControllerTest.php @@ -120,7 +120,7 @@ class DeliciousControllerTest extends WallabagCoreTestCase $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); - $tags = $content->getTags(); + $tags = $content->getTagsLabel(); $this->assertContains('osx', $tags, 'It includes the "osx" tag'); $this->assertGreaterThanOrEqual(4, \count($tags));