]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix tests
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 3 Aug 2017 14:20:49 +0000 (16:20 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 6 Sep 2017 20:49:16 +0000 (22:49 +0200)
src/Wallabag/CoreBundle/Repository/EntryRepository.php
tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php

index 44f95dcba2ebd96ee6fe168c11d0d5c9660efe94..47db4c079b83decc68e9b29b3cc0213838e0bf47 100644 (file)
@@ -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',
index 02ad26aede970cc57e98058072be15ac6396ccd6..ab7f23cc516a51acf4f959b39c8d7cc584745b89 100644 (file)
@@ -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()