From 960af1961a1577113fed9b5a576d25aae18434d1 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sun, 25 Nov 2018 23:46:13 +0100 Subject: [PATCH] Adapted test for ParentRelation --- .../Parent/AbstractParentRelationTest.php} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename application/tests/Unit/Entity/Meta/{RelationTest.php => Relation/Parent/AbstractParentRelationTest.php} (67%) diff --git a/application/tests/Unit/Entity/Meta/RelationTest.php b/application/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php similarity index 67% rename from application/tests/Unit/Entity/Meta/RelationTest.php rename to application/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php index e419d48..358154e 100644 --- a/application/tests/Unit/Entity/Meta/RelationTest.php +++ b/application/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php @@ -3,20 +3,20 @@ namespace tests\Unit\Entity\Meta; use PHPUnit\Framework\TestCase; -use App\Entity\Meta\RelationInterface; -use App\Entity\Meta\Relation; use Doctrine\Common\Collections\Collection; +use App\Entity\Meta\Relation\Parent\AbstractParentRelation; +use App\Entity\Meta\Relation\Parent\ParentRelationInterface; -class RelationTest extends TestCase +class AbstractParentRelationTest extends TestCase { /** - * @var RelationInterface + * @var ParentRelationInterface */ protected $relation; public function setUp(): void { - $this->relation = new Relation(); + $this->relation = new class extends AbstractParentRelation{}; } public function testConstructor(): void