]>
Commit | Line | Data |
---|---|---|
7019c7cf JB |
1 | <?php |
2 | ||
23634d5d | 3 | namespace Tests\Wallabag\ImportBundle\Import; |
7019c7cf | 4 | |
bd91bd5c | 5 | use PHPUnit\Framework\TestCase; |
7019c7cf JB |
6 | use Wallabag\ImportBundle\Import\ImportChain; |
7 | ||
bd91bd5c | 8 | class ImportChainTest extends TestCase |
7019c7cf JB |
9 | { |
10 | public function testGetAll() | |
11 | { | |
12 | $import = $this->getMockBuilder('Wallabag\ImportBundle\Import\ImportInterface') | |
13 | ->disableOriginalConstructor() | |
14 | ->getMock(); | |
15 | ||
16 | $importChain = new ImportChain(); | |
17 | $importChain->addImport($import, 'alias'); | |
18 | ||
19 | $this->assertCount(1, $importChain->getAll()); | |
f808b016 | 20 | $this->assertSame($import, $importChain->getAll()['alias']); |
7019c7cf JB |
21 | } |
22 | } |