wallabag/tests/Wallabag/ImportBundle/Import/ImportChainTest.php
2022-09-01 20:54:56 +02:00

24 lines
622 B
PHP

<?php
namespace Tests\Wallabag\ImportBundle\Import;
use PHPUnit\Framework\TestCase;
use Wallabag\ImportBundle\Import\ImportChain;
use Wallabag\ImportBundle\Import\ImportInterface;
class ImportChainTest extends TestCase
{
public function testGetAll()
{
$import = $this->getMockBuilder(ImportInterface::class)
->disableOriginalConstructor()
->getMock();
$importChain = new ImportChain();
$importChain->addImport($import, 'alias');
$this->assertCount(1, $importChain->getAll());
$this->assertSame($import, $importChain->getAll()['alias']);
}
}