mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-27 17:28:39 +00:00
Fix tag related test for Pocket
This commit is contained in:
parent
5b2b5858fe
commit
c5c7f90a81
2 changed files with 6 additions and 3 deletions
|
@ -260,7 +260,9 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
|
|||
->getMock();
|
||||
|
||||
$tagRepo->expects($this->exactly(2))
|
||||
->method('findOneByLabelAndUserId')
|
||||
// the method `findOneByLabel` doesn't exist, EntityRepository will then call `_call` method
|
||||
// to magically call the `findOneBy` with ['label' => 'foo']
|
||||
->method('__call')
|
||||
->will($this->onConsecutiveCalls(false, $tag));
|
||||
|
||||
$this->em
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue