2018-10-31 16:15:39 +01:00
|
|
|
<?php
|
2018-10-31 17:19:10 +01:00
|
|
|
|
2018-10-31 20:47:51 +01:00
|
|
|
namespace App\Tests\Unit\Entity\Meta;
|
2018-10-31 16:15:39 +01:00
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
use App\Entity\Meta\Reciever;
|
|
|
|
use App\Entity\Meta\RecieverInterface;
|
2018-10-31 21:07:57 +01:00
|
|
|
use Doctrine\Common\Collections\Collection;
|
2018-10-31 16:15:39 +01:00
|
|
|
|
|
|
|
class RecieverTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var RecieverInterface
|
|
|
|
*/
|
|
|
|
public $reciever;
|
2018-10-31 17:19:10 +01:00
|
|
|
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
2018-10-31 16:15:39 +01:00
|
|
|
$this->reciever = new Reciever();
|
|
|
|
}
|
2018-10-31 17:19:10 +01:00
|
|
|
|
|
|
|
public function testConstructor(): void
|
|
|
|
{
|
2018-10-31 21:07:57 +01:00
|
|
|
$this->assertInstanceOf(Collection::class, $this->reciever->getMembers());
|
2018-10-31 16:15:39 +01:00
|
|
|
}
|
2018-10-31 17:19:10 +01:00
|
|
|
}
|