mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Move test files directly under tests/ directory
This commit is contained in:
parent
a37b385c23
commit
24da70e338
117 changed files with 4 additions and 4 deletions
23
tests/Import/ImportChainTest.php
Normal file
23
tests/Import/ImportChainTest.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Wallabag\CoreBundle\Import;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Wallabag\CoreBundle\Import\ImportChain;
|
||||
use Wallabag\CoreBundle\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']);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue