3 namespace Tests\Wallabag\ImportBundle\Import
;
5 use PHPUnit\Framework\TestCase
;
6 use Wallabag\ImportBundle\Import\ImportChain
;
8 class ImportChainTest
extends TestCase
10 public function testGetAll()
12 $import = $this->getMockBuilder('Wallabag\ImportBundle\Import\ImportInterface')
13 ->disableOriginalConstructor()
16 $importChain = new ImportChain();
17 $importChain->addImport($import, 'alias');
19 $this->assertCount(1, $importChain->getAll());
20 $this->assertSame($import, $importChain->getAll()['alias']);