use Wallabag\ImportBundle\Import\WallabagV2Import;
use Wallabag\UserBundle\Entity\User;
+use Wallabag\CoreBundle\Entity\Entry;
use Monolog\Logger;
use Monolog\Handler\TestHandler;
->method('getRepository')
->willReturn($entryRepo);
+ $this->contentProxy
+ ->expects($this->exactly(2))
+ ->method('updateEntry')
+ ->willReturn(new Entry($this->user));
+
$res = $wallabagV2Import->import();
$this->assertTrue($res);
->method('getRepository')
->willReturn($entryRepo);
+ $this->contentProxy
+ ->expects($this->exactly(2))
+ ->method('updateEntry')
+ ->willReturn(new Entry($this->user));
+
// check that every entry persisted are archived
$this->em
->expects($this->any())