@@ -138,7 +138,7 @@ public function testSupportWithoutManager()
138
138
$ this ->assertFalse ($ converter ->supports ($ request , $ argument ));
139
139
}
140
140
141
- public function testApplyWithNoIdAndData ()
141
+ public function testResolveWithNoIdAndData ()
142
142
{
143
143
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
144
144
$ registry ->expects ($ this ->once ())
@@ -155,7 +155,7 @@ public function testApplyWithNoIdAndData()
155
155
$ converter ->resolve ($ request , $ argument );
156
156
}
157
157
158
- public function testApplyWithNoIdAndDataOptional ()
158
+ public function testResolveWithNoIdAndDataOptional ()
159
159
{
160
160
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
161
161
$ registry ->expects ($ this ->once ())
@@ -172,14 +172,14 @@ public function testApplyWithNoIdAndDataOptional()
172
172
$ this ->assertYieldEquals ([null ], $ ret );
173
173
}
174
174
175
- public function testApplyWithStripNulls ()
175
+ public function testResolveWithStripNulls ()
176
176
{
177
177
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
178
178
$ converter = new EntityValueResolver ($ registry );
179
179
180
180
$ request = new Request ();
181
181
$ request ->attributes ->set ('arg ' , null );
182
- $ argument = $ this ->createArgument ('stdClass ' , new MapEntity (mapping: [ ' arg ' => ' arg ' ], stripNull: true ), 'arg ' , true );
182
+ $ argument = $ this ->createArgument ('stdClass ' , new MapEntity (stripNull: true ), 'arg ' , true );
183
183
184
184
$ classMetadata = $ this ->getMockBuilder (ClassMetadata::class)->getMock ();
185
185
$ manager = $ this ->getMockBuilder (ObjectManager::class)->getMock ();
@@ -209,7 +209,7 @@ public function testApplyWithStripNulls()
209
209
/**
210
210
* @dataProvider idsProvider
211
211
*/
212
- public function testApplyWithId (string |int $ id )
212
+ public function testResolveWithId (string |int $ id )
213
213
{
214
214
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
215
215
$ converter = new EntityValueResolver ($ registry );
@@ -241,7 +241,7 @@ public function testApplyWithId(string|int $id)
241
241
$ this ->assertYieldEquals ([$ object ], $ ret );
242
242
}
243
243
244
- public function testApplyWithNullId ()
244
+ public function testResolveWithNullId ()
245
245
{
246
246
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
247
247
$ registry ->expects ($ this ->once ())
@@ -260,7 +260,7 @@ public function testApplyWithNullId()
260
260
$ this ->assertYieldEquals ([null ], $ ret );
261
261
}
262
262
263
- public function testApplyWithConversionFailedException ()
263
+ public function testResolveWithConversionFailedException ()
264
264
{
265
265
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
266
266
$ converter = new EntityValueResolver ($ registry );
@@ -320,7 +320,7 @@ public function idsProvider(): iterable
320
320
yield ['foo ' ];
321
321
}
322
322
323
- public function testApplyGuessOptional ()
323
+ public function testResolveGuessOptional ()
324
324
{
325
325
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
326
326
$ converter = new EntityValueResolver ($ registry );
@@ -353,7 +353,7 @@ public function testApplyGuessOptional()
353
353
$ this ->assertYieldEquals ([null ], $ ret );
354
354
}
355
355
356
- public function testApplyWithMappingAndExclude ()
356
+ public function testResolveWithMappingAndExclude ()
357
357
{
358
358
$ registry = $ this ->getMockBuilder (ManagerRegistry::class)->getMock ();
359
359
$ converter = new EntityValueResolver ($ registry );
0 commit comments