]> git.immae.eu Git - github/wallabag/wallabag.git/blame - tests/Wallabag/ImportBundle/Import/ImportChainTest.php
Merge pull request #4232 from wallabag/dependabot/composer/php-http/mock-client-1.3.1
[github/wallabag/wallabag.git] / tests / Wallabag / ImportBundle / Import / ImportChainTest.php
CommitLineData
7019c7cf
JB
1<?php
2
23634d5d 3namespace Tests\Wallabag\ImportBundle\Import;
7019c7cf 4
bd91bd5c 5use PHPUnit\Framework\TestCase;
7019c7cf
JB
6use Wallabag\ImportBundle\Import\ImportChain;
7
bd91bd5c 8class 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}