Skip to content

Commit 1bc9aaa

Browse files
committed
minor symfony#17080 Fix doctrine bridge tests on older PHP versions (jakzal)
This PR was merged into the 2.8 branch. Discussion ---------- Fix doctrine bridge tests on older PHP versions | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony@f176156 | License | MIT | Doc PR | - `Foo::class` constant was introduced in PHP 5.5. Commits ------- 6c68946 Fix doctrine bridge tests on older PHP versions
2 parents fb7640a + 6c68946 commit 1bc9aaa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public function testSubmitSingleNonExpandedStringCastableIdentifier()
616616

617617
$this->persist(array($entity1, $entity2));
618618

619-
$field = $this->factory->createNamed('name', EntityType::class, null, array(
619+
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
620620
'multiple' => false,
621621
'expanded' => false,
622622
'em' => 'default',
@@ -638,7 +638,7 @@ public function testSubmitSingleStringCastableIdentifierExpanded()
638638

639639
$this->persist(array($entity1, $entity2));
640640

641-
$field = $this->factory->createNamed('name', EntityType::class, null, array(
641+
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
642642
'multiple' => false,
643643
'expanded' => true,
644644
'em' => 'default',
@@ -664,7 +664,7 @@ public function testSubmitMultipleNonExpandedStringCastableIdentifierForExisting
664664

665665
$this->persist(array($entity1, $entity2, $entity3));
666666

667-
$field = $this->factory->createNamed('name', EntityType::class, null, array(
667+
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
668668
'multiple' => true,
669669
'expanded' => false,
670670
'em' => 'default',
@@ -695,7 +695,7 @@ public function testSubmitMultipleNonExpandedStringCastableIdentifier()
695695

696696
$this->persist(array($entity1, $entity2, $entity3));
697697

698-
$field = $this->factory->createNamed('name', EntityType::class, null, array(
698+
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
699699
'multiple' => true,
700700
'expanded' => false,
701701
'em' => 'default',
@@ -720,7 +720,7 @@ public function testSubmitMultipleStringCastableIdentifierExpanded()
720720

721721
$this->persist(array($entity1, $entity2, $entity3));
722722

723-
$field = $this->factory->createNamed('name', EntityType::class, null, array(
723+
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
724724
'multiple' => true,
725725
'expanded' => true,
726726
'em' => 'default',

0 commit comments

Comments
 (0)