3 namespace Tests\Wallabag\ImportBundle\Import
;
5 use Wallabag\ImportBundle\Import\ImportChain
;
7 class ImportChainTest
extends \PHPUnit_Framework_TestCase
9 public function testGetAll()
11 $import = $this->getMockBuilder('Wallabag\ImportBundle\Import\ImportInterface')
12 ->disableOriginalConstructor()
15 $importChain = new ImportChain();
16 $importChain->addImport($import, 'alias');
18 $this->assertCount(1, $importChain->getAll());
19 $this->assertEquals($import, $importChain->getAll()['alias']);