]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | namespace Tests\Wallabag\ImportBundle\Import; | |
4 | ||
5 | use PHPUnit\Framework\TestCase; | |
6 | use Wallabag\ImportBundle\Import\ImportChain; | |
7 | ||
8 | class ImportChainTest extends TestCase | |
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()); | |
20 | $this->assertSame($import, $importChain->getAll()['alias']); | |
21 | } | |
22 | } |