2018-11-02 20:37:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Unit\Entity\Source\Collection;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
use App\Entity\Source\Collection\CollectionSourceInterface;
|
|
|
|
use App\Entity\Source\Collection\AbstractCollectionSource;
|
2018-11-02 21:00:24 +01:00
|
|
|
use Doctrine\Common\Collections\Collection;
|
2018-11-02 20:37:23 +01:00
|
|
|
|
|
|
|
class AbstractCollectionSourceTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var CollectionSourceInterface
|
|
|
|
*/
|
|
|
|
public $collectionSource;
|
|
|
|
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
$this->collectionSource = new class() extends AbstractCollectionSource {
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testConstruct(): void
|
|
|
|
{
|
2018-11-02 21:00:24 +01:00
|
|
|
$this->assertInstanceOf(Collection::class, $this->collectionSource->getCollection());
|
2018-11-02 20:37:23 +01:00
|
|
|
}
|
|
|
|
}
|