aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-03 10:32:56 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-03 10:32:56 +0100
commitc5c7f90a81d7a2082c7b6dad38c2a6dfdba8d016 (patch)
treec56c2b2f7e975939ddb5014e013775143113ba1c /src/Wallabag/ImportBundle/Tests
parent5b2b5858fe363c1f9203b153166def099ecb5d67 (diff)
downloadwallabag-c5c7f90a81d7a2082c7b6dad38c2a6dfdba8d016.tar.gz
wallabag-c5c7f90a81d7a2082c7b6dad38c2a6dfdba8d016.tar.zst
wallabag-c5c7f90a81d7a2082c7b6dad38c2a6dfdba8d016.zip
Fix tag related test for Pocket
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php
index 6ee70db0..1fc2dfa6 100644
--- a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php
+++ b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php
@@ -260,7 +260,9 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
260 ->getMock(); 260 ->getMock();
261 261
262 $tagRepo->expects($this->exactly(2)) 262 $tagRepo->expects($this->exactly(2))
263 ->method('findOneByLabelAndUserId') 263 // the method `findOneByLabel` doesn't exist, EntityRepository will then call `_call` method
264 // to magically call the `findOneBy` with ['label' => 'foo']
265 ->method('__call')
264 ->will($this->onConsecutiveCalls(false, $tag)); 266 ->will($this->onConsecutiveCalls(false, $tag));
265 267
266 $this->em 268 $this->em