@@ -39,8 +39,6 @@ class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase
39
39
40
40
protected function setUp ()
41
41
{
42
- $ this ->iniSet ('error_reporting ' , -1 & ~E_USER_DEPRECATED );
43
-
44
42
$ this ->em = DoctrineTestHelper::createTestEntityManager ();
45
43
46
44
$ schemaTool = new SchemaTool ($ this ->em );
@@ -75,7 +73,7 @@ protected function tearDown()
75
73
* @expectedException \Symfony\Component\Form\Exception\StringCastException
76
74
* @expectedMessage Entity "Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity" passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option).
77
75
*/
78
- public function testLegacyEntitiesMustHaveAToStringMethod ()
76
+ public function testEntitiesMustHaveAToStringMethod ()
79
77
{
80
78
$ entity1 = new SingleIntIdNoToStringEntity (1 , 'Foo ' );
81
79
$ entity2 = new SingleIntIdNoToStringEntity (2 , 'Bar ' );
@@ -101,7 +99,7 @@ public function testLegacyEntitiesMustHaveAToStringMethod()
101
99
/**
102
100
* @expectedException \Symfony\Component\Form\Exception\RuntimeException
103
101
*/
104
- public function testLegacyChoicesMustBeManaged ()
102
+ public function testChoicesMustBeManaged ()
105
103
{
106
104
$ entity1 = new SingleIntIdEntity (1 , 'Foo ' );
107
105
$ entity2 = new SingleIntIdEntity (2 , 'Bar ' );
@@ -123,7 +121,7 @@ public function testLegacyChoicesMustBeManaged()
123
121
$ choiceList ->getChoices ();
124
122
}
125
123
126
- public function testLegacyInitExplicitChoices ()
124
+ public function testInitExplicitChoices ()
127
125
{
128
126
$ entity1 = new SingleIntIdEntity (1 , 'Foo ' );
129
127
$ entity2 = new SingleIntIdEntity (2 , 'Bar ' );
@@ -146,7 +144,7 @@ public function testLegacyInitExplicitChoices()
146
144
$ this ->assertSame (array (1 => $ entity1 , 2 => $ entity2 ), $ choiceList ->getChoices ());
147
145
}
148
146
149
- public function testLegacyInitEmptyChoices ()
147
+ public function testInitEmptyChoices ()
150
148
{
151
149
$ entity1 = new SingleIntIdEntity (1 , 'Foo ' );
152
150
$ entity2 = new SingleIntIdEntity (2 , 'Bar ' );
@@ -166,7 +164,7 @@ public function testLegacyInitEmptyChoices()
166
164
$ this ->assertSame (array (), $ choiceList ->getChoices ());
167
165
}
168
166
169
- public function testLegacyInitNestedChoices ()
167
+ public function testInitNestedChoices ()
170
168
{
171
169
$ entity1 = new SingleIntIdEntity (1 , 'Foo ' );
172
170
$ entity2 = new SingleIntIdEntity (2 , 'Bar ' );
@@ -194,7 +192,7 @@ public function testLegacyInitNestedChoices()
194
192
), $ choiceList ->getRemainingViews ());
195
193
}
196
194
197
- public function testLegacyGroupByPropertyPath ()
195
+ public function testGroupByPropertyPath ()
198
196
{
199
197
$ item1 = new GroupableEntity (1 , 'Foo ' , 'Group1 ' );
200
198
$ item2 = new GroupableEntity (2 , 'Bar ' , 'Group1 ' );
@@ -229,7 +227,7 @@ public function testLegacyGroupByPropertyPath()
229
227
), $ choiceList ->getRemainingViews ());
230
228
}
231
229
232
- public function testLegacyGroupByInvalidPropertyPathReturnsFlatChoices ()
230
+ public function testGroupByInvalidPropertyPathReturnsFlatChoices ()
233
231
{
234
232
$ item1 = new GroupableEntity (1 , 'Foo ' , 'Group1 ' );
235
233
$ item2 = new GroupableEntity (2 , 'Bar ' , 'Group1 ' );
@@ -256,7 +254,7 @@ public function testLegacyGroupByInvalidPropertyPathReturnsFlatChoices()
256
254
), $ choiceList ->getChoices ());
257
255
}
258
256
259
- public function testLegacyInitShorthandEntityName ()
257
+ public function testInitShorthandEntityName ()
260
258
{
261
259
$ item1 = new SingleIntIdEntity (1 , 'Foo ' );
262
260
$ item2 = new SingleIntIdEntity (2 , 'Bar ' );
@@ -272,7 +270,7 @@ public function testLegacyInitShorthandEntityName()
272
270
$ this ->assertEquals (array (1 , 2 ), $ choiceList ->getValuesForChoices (array ($ item1 , $ item2 )));
273
271
}
274
272
275
- public function testLegacyInitShorthandEntityName2 ()
273
+ public function testInitShorthandEntityName2 ()
276
274
{
277
275
$ item1 = new SingleIntIdEntity (1 , 'Foo ' );
278
276
$ item2 = new SingleIntIdEntity (2 , 'Bar ' );
0 commit comments