diff --git a/Tests/Form/Type/CenterTypeTest.php b/Tests/Form/Type/CenterTypeTest.php index 8c3d2f290..48b96375e 100644 --- a/Tests/Form/Type/CenterTypeTest.php +++ b/Tests/Form/Type/CenterTypeTest.php @@ -23,6 +23,8 @@ use Symfony\Component\Form\Test\TypeTestCase; use Chill\MainBundle\Form\Type\CenterType; use Chill\MainBundle\Entity\User; use Chill\MainBundle\Entity\GroupCenter; +use Symfony\Component\Form\Extension\Core\Type\HiddenType; +use Symfony\Bridge\Doctrine\Form\Type\EntityType; /** @@ -48,7 +50,7 @@ class CenterTypeTest extends TypeTestCase $type = $this->prepareType($user); - $this->assertEquals('hidden', $type->getParent()); + $this->assertEquals(HiddenType::class, $type->getParent()); } /** @@ -71,7 +73,7 @@ class CenterTypeTest extends TypeTestCase $type = $this->prepareType($user); - $this->assertEquals('hidden', $type->getParent()); + $this->assertEquals(HiddenType::class, $type->getParent()); } /** @@ -96,7 +98,7 @@ class CenterTypeTest extends TypeTestCase $type = $this->prepareType($user); - $this->assertEquals('entity', $type->getParent()); + $this->assertEquals(EntityType::class, $type->getParent()); } /**