diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-15 15:28:22 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-15 15:28:32 +0100 |
commit | 78833672469f7beb0c4a195aa0a76f7ca4133057 (patch) | |
tree | 87e295afbfc22e94262f3c498ce758a1101c939e /src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php | |
parent | 790573d45899504bdecd2573c8f64018e23b139e (diff) | |
download | wallabag-78833672469f7beb0c4a195aa0a76f7ca4133057.tar.gz wallabag-78833672469f7beb0c4a195aa0a76f7ca4133057.tar.zst wallabag-78833672469f7beb0c4a195aa0a76f7ca4133057.zip |
Fix `findOneByUrl` side effect in tests
Fix #1566
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php index d5b41777..90483480 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php | |||
@@ -53,7 +53,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
53 | ->getMock(); | 53 | ->getMock(); |
54 | 54 | ||
55 | $entryRepo->expects($this->exactly(3)) | 55 | $entryRepo->expects($this->exactly(3)) |
56 | ->method('existByUrlAndUserId') | 56 | ->method('findByUrlAndUserId') |
57 | ->will($this->onConsecutiveCalls(false, true, false)); | 57 | ->will($this->onConsecutiveCalls(false, true, false)); |
58 | 58 | ||
59 | $this->em | 59 | $this->em |