diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-12 10:45:14 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-12 10:45:14 +0100 |
commit | b95ffda2a105af4c6f4f86aca025a0bf967bc86a (patch) | |
tree | 864a97443092ed854a61c91b6655a2628f4618fa /src/Wallabag/AnnotationBundle/Tests | |
parent | 09d8bb6fa26b881da478df4c7b97620cb7aea0d0 (diff) | |
download | wallabag-b95ffda2a105af4c6f4f86aca025a0bf967bc86a.tar.gz wallabag-b95ffda2a105af4c6f4f86aca025a0bf967bc86a.tar.zst wallabag-b95ffda2a105af4c6f4f86aca025a0bf967bc86a.zip |
Fix hazardous bug with Postgres
Instead of retrieving a random annotation, sort them to be sure they are all the same no matter the database used
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Tests')
-rw-r--r-- | src/Wallabag/AnnotationBundle/Tests/Controller/AnnotationControllerTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/AnnotationBundle/Tests/Controller/AnnotationControllerTest.php b/src/Wallabag/AnnotationBundle/Tests/Controller/AnnotationControllerTest.php index 7a877f98..e972c2de 100644 --- a/src/Wallabag/AnnotationBundle/Tests/Controller/AnnotationControllerTest.php +++ b/src/Wallabag/AnnotationBundle/Tests/Controller/AnnotationControllerTest.php | |||
@@ -81,7 +81,7 @@ class AnnotationControllerTest extends WallabagAnnotationTestCase | |||
81 | $this->assertEquals('Big boss', $content['user']); | 81 | $this->assertEquals('Big boss', $content['user']); |
82 | $this->assertEquals('v1.0', $content['annotator_schema_version']); | 82 | $this->assertEquals('v1.0', $content['annotator_schema_version']); |
83 | $this->assertEquals('a modified annotation', $content['text']); | 83 | $this->assertEquals('a modified annotation', $content['text']); |
84 | $this->assertEquals('content', $content['quote']); | 84 | $this->assertEquals('my quote', $content['quote']); |
85 | 85 | ||
86 | $annotationUpdated = $this->client->getContainer() | 86 | $annotationUpdated = $this->client->getContainer() |
87 | ->get('doctrine.orm.entity_manager') | 87 | ->get('doctrine.orm.entity_manager') |