From: Jeremy Benoist Date: Thu, 3 Aug 2017 14:20:49 +0000 (+0200) Subject: Fix tests X-Git-Tag: 2.3.0~31^2~13^2~1 X-Git-Url: https://git.immae.eu/?p=github%2Fwallabag%2Fwallabag.git;a=commitdiff_plain;h=33264c2d02fdfe6e8321096491b9c7398cd10e9a Fix tests --- diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 44f95dcb..47db4c07 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -156,7 +156,7 @@ class EntryRepository extends EntityRepository $entryAlias = 'e' . $i; $tagAlias = 't' . $i; - // Complexe queries to ensure multiple tags is associated to an entry + // Complexe queries to ensure multiple tags are associated to an entry // https://stackoverflow.com/a/6638146/569101 $qb->andWhere($qb->expr()->in( 'e.id', diff --git a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php index 02ad26ae..ab7f23cc 100644 --- a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php @@ -239,7 +239,8 @@ class ExportControllerTest extends WallabagCoreTestCase $this->assertSame($contentInDB->getLanguage(), $content[0]['language']); $this->assertSame($contentInDB->getReadingtime(), $content[0]['reading_time']); $this->assertSame($contentInDB->getDomainname(), $content[0]['domain_name']); - $this->assertSame(['baz', 'foo'], $content[0]['tags']); + $this->assertContains('baz', $content[0]['tags']); + $this->assertContains('foo', $content[0]['tags']); } public function testXmlExport()