Implemented some tests for UserSource and deleted unnecessary attributs

This commit is contained in:
Kevin Frantz committed 2018-11-04 12:24:52 +01:00
1 parent 03ce3f5cdf
commit 00ae6412e6
6 files changed
+29 -71

No files matched your search

@@ -0,0 +1,27 @@
<?php
namespace tests\unit\Entity\Source\Data;
use PHPUnit\Framework\TestCase;
use App\Entity\Source\Data\UserSourceInterface;
use App\Entity\Source\Data\UserSource;
use Doctrine\Common\Collections\Collection;
use App\Entity\Source\Data\NameSourceInterface;
class UserSourceTest extends TestCase
{
/**
*
* @var UserSourceInterface
*/
public $userSource;
public function setUp():void{
$this->userSource = new UserSource();
}
public function testConstructor():void {
$this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
$this->assertInstanceOf(NameSourceInterface::class, $this->userSource->getNameSource());
}
}