Refactored reciever group and adapted testing namespaces

This commit is contained in:
Kevin Frantz
2018-10-31 16:15:39 +01:00
parent 09cfcebb92
commit bb01080b34
17 changed files with 90 additions and 140 deletions

View File

@@ -1,10 +1,13 @@
<?php
namespace App\Entity\Meta;
namespace tests\unit\Entity\Meta;
use PHPUnit\Framework\TestCase;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\Meta\LawInterface;
use App\Entity\Meta\Law;
use App\Entity\Meta\Right;
class LawTest extends TestCase
{

View File

@@ -0,0 +1,24 @@
<?php
namespace App\tests\unit\Entity\Meta;
use PHPUnit\Framework\TestCase;
use Doctrine\Common\Collections\Collection;
use App\Entity\Meta\Reciever;
use App\Entity\Meta\RecieverInterface;
class RecieverTest extends TestCase
{
/**
*
* @var RecieverInterface
*/
public $reciever;
public function setUp():void{
$this->reciever = new Reciever();
}
public function testConstructor():void {
$this->assertEquals(Collection::class, $this->reciever->getAllRecievers());
}
}

View File

@@ -1,9 +1,12 @@
<?php
namespace App\Entity\Meta;
namespace tests\unit\Entity;
use PHPUnit\Framework\TestCase;
use App\DBAL\Types\RightType;
use App\Entity\Meta\RightInterface;
use App\Entity\Meta\Right;
use App\Entity\Meta\Law;
/**
* @todo Implement reciever test