infinito/application/tests/Unit/Entity/Source/Collection/AbstractCollectionSourceTest.php
2018-11-02 21:00:24 +01:00

28 lines
679 B
PHP

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