Updated type references

This commit is contained in:
Kevin Frantz
2019-01-05 17:27:40 +01:00
parent d1676fea7c
commit 7300f059c3
15 changed files with 53 additions and 53 deletions

View File

@@ -5,7 +5,7 @@ namespace Tests\Unit\Entity\Attribut;
use PHPUnit\Framework\TestCase;
use App\Entity\Attribut\LayerAttributInterface;
use App\Entity\Attribut\LayerAttribut;
use App\DBAL\Types\LayerType;
use App\DBAL\Types\Meta\Right\LayerType;
class LayerAttributTest extends TestCase
{

View File

@@ -3,11 +3,11 @@
namespace tests\unit\Entity;
use PHPUnit\Framework\TestCase;
use App\DBAL\Types\RightType;
use App\DBAL\Types\Meta\Right\CRUDType;
use App\Entity\Meta\RightInterface;
use App\Entity\Meta\Right;
use App\Entity\Meta\Law;
use App\DBAL\Types\LayerType;
use App\DBAL\Types\Meta\Right\LayerType;
use App\Exception\NoValidChoiceException;
use App\Entity\Source\AbstractSource;
@@ -73,7 +73,7 @@ class RightTest extends TestCase
public function testRight(): void
{
foreach (RightType::getChoices() as $key => $value) {
foreach (CRUDType::getChoices() as $key => $value) {
$this->assertNull($this->right->setType($key));
$this->assertEquals($key, $this->right->getType());
}
@@ -99,7 +99,7 @@ class RightTest extends TestCase
$source = $this->createMock(AbstractSource::class);
$reciever = $this->createMock(AbstractSource::class);
$grant = false;
$type = RightType::READ;
$type = CRUDType::READ;
$layer = LayerType::SOURCE;
$this->right->setSource($source);
$this->right->setReciever($reciever);