]> git.immae.eu Git - github/wallabag/wallabag.git/blob - tests/Wallabag/ImportBundle/Import/ImportChainTest.php
Merge pull request #3959 from wallabag/mig-tag-collation
[github/wallabag/wallabag.git] / tests / Wallabag / ImportBundle / Import / ImportChainTest.php
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 }