8000 minor fix · symfony/symfony@bc34081 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc34081

Browse files
minor fix
1 parent a4cbe5f commit bc34081

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection;
1313

14-
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
14+
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\DependencyInjection\Definition;
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;

src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
1516
use Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity;
1617
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
1718
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity;
1819
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList;
19-
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
2020
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
2121
use Doctrine\ORM\Tools\SchemaTool;
2222

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function setUp()
7272
$ids = range(1, 300);
7373

7474
foreach ($ids as $id) {
75-
$name = 65 + chr($id % 57);
75+
$name = 65 + (int) chr($id % 57);
7676
$this->em->persist(new SingleIntIdEntity($id, $name));
7777
}
7878

@@ -90,7 +90,7 @@ public function testCollapsedEntityField()
9090
$this->setMaxRunningTime(1);
9191

9292
for ($i = 0; $i < 40; ++$i) {
93-
$form = $this->factory->create('Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
93+
$form = $this->factory->create('entity', null, array(
9494
'class' => self::ENTITY_CLASS,
9595
));
9696

@@ -108,7 +108,7 @@ public function testCollapsedEntityFieldWithChoices()
108108
$this->setMaxRunningTime(1);
109109

110110
for ($i = 0; $i < 40; ++$i) {
111-
$form = $this->factory->create('Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
111+
$form = $this->factory->create('entity', null, array(
112112
'class' => self::ENTITY_CLASS,
113113
'choices' => $choices,
114114
));
@@ -127,7 +127,7 @@ public function testCollapsedEntityFieldWithPreferredChoices()
127127
$this->setMaxRunningTime(1);
128128

129129
for ($i = 0; $i < 40; ++$i) {
130-
$form = $this->factory->create('Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
130+
$form = $this->factory->create('entity', null, array(
131131
'class' => self::ENTITY_CLASS,
132132
'preferred_choices' => $choices,
133133
));

0 commit comments

Comments
 (0)
0