X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=tests%2FWallabag%2FImportBundle%2FImport%2FImportChainTest.php;fp=tests%2FWallabag%2FImportBundle%2FImport%2FImportChainTest.php;h=32568ce53a0b9bd7391ec32f6e5be65cc6773a1d;hb=23634d5d842dabcf5d7475e2becb7e127824239e;hp=0000000000000000000000000000000000000000;hpb=891a026e31ad54ca90b70f6026f23260cfadb7fd;p=github%2Fwallabag%2Fwallabag.git diff --git a/tests/Wallabag/ImportBundle/Import/ImportChainTest.php b/tests/Wallabag/ImportBundle/Import/ImportChainTest.php new file mode 100644 index 00000000..32568ce5 --- /dev/null +++ b/tests/Wallabag/ImportBundle/Import/ImportChainTest.php @@ -0,0 +1,21 @@ +getMockBuilder('Wallabag\ImportBundle\Import\ImportInterface') + ->disableOriginalConstructor() + ->getMock(); + + $importChain = new ImportChain(); + $importChain->addImport($import, 'alias'); + + $this->assertCount(1, $importChain->getAll()); + $this->assertEquals($import, $importChain->getAll()['alias']); + } +}