diff options
Diffstat (limited to 'tests/Wallabag/ImportBundle/Import/PocketImportTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Import/PocketImportTest.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php index 952521a2..9ec7935c 100644 --- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php | |||
@@ -41,6 +41,20 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase | |||
41 | ->disableOriginalConstructor() | 41 | ->disableOriginalConstructor() |
42 | ->getMock(); | 42 | ->getMock(); |
43 | 43 | ||
44 | $this->uow = $this->getMockBuilder('Doctrine\ORM\UnitOfWork') | ||
45 | ->disableOriginalConstructor() | ||
46 | ->getMock(); | ||
47 | |||
48 | $this->em | ||
49 | ->expects($this->any()) | ||
50 | ->method('getUnitOfWork') | ||
51 | ->willReturn($this->uow); | ||
52 | |||
53 | $this->uow | ||
54 | ->expects($this->any()) | ||
55 | ->method('getScheduledEntityInsertions') | ||
56 | ->willReturn([]); | ||
57 | |||
44 | $pocket = new PocketImport( | 58 | $pocket = new PocketImport( |
45 | $this->em, | 59 | $this->em, |
46 | $this->contentProxy | 60 | $this->contentProxy |