Fix tests

This commit is contained in:
Jeremy Benoist 2022-03-02 20:05:45 +01:00
parent 9160c4e713
commit 7ec0c9f844
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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));