wallabag/tests/Import/ImportChainTest.php
2024-02-23 07:42:48 +01:00

23 lines
583 B
PHP

<?php
namespace Tests\Wallabag\Import;
use PHPUnit\Framework\TestCase;
use Wallabag\Import\ImportChain;
use Wallabag\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']);
}
}