Tests/Mapping/ChoiceMappingTest.php 1 location
|
@@ 246-260 (lines=15) @@
|
| 243 |
|
/** |
| 244 |
|
* @test |
| 245 |
|
*/ |
| 246 |
|
public function shouldWakeUpInnerMapping() |
| 247 |
|
{ |
| 248 |
|
/** @var ContainerInterface $container */ |
| 249 |
|
$container = $this->createMock(ContainerInterface::class); |
| 250 |
|
|
| 251 |
|
$this->optionMappingA->expects($this->once())->method("wakeUpMapping")->with( |
| 252 |
|
$this->equalTo($container) |
| 253 |
|
); |
| 254 |
|
|
| 255 |
|
$this->optionMappingB->expects($this->once())->method("wakeUpMapping")->with( |
| 256 |
|
$this->equalTo($container) |
| 257 |
|
); |
| 258 |
|
|
| 259 |
|
$this->choiceMapping->wakeUpMapping($container); |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
} |
| 263 |
|
|
Tests/Mapping/ObjectMappingTest.php 1 location
|
@@ 361-375 (lines=15) @@
|
| 358 |
|
/** |
| 359 |
|
* @test |
| 360 |
|
*/ |
| 361 |
|
public function shouldWakeUpInnerMapping() |
| 362 |
|
{ |
| 363 |
|
/** @var ContainerInterface $container */ |
| 364 |
|
$container = $this->createMock(ContainerInterface::class); |
| 365 |
|
|
| 366 |
|
$this->factory->expects($this->once())->method("wakeUpCall")->with( |
| 367 |
|
$this->equalTo($container) |
| 368 |
|
); |
| 369 |
|
|
| 370 |
|
$this->serializer->expects($this->once())->method("wakeUpCall")->with( |
| 371 |
|
$this->equalTo($container) |
| 372 |
|
); |
| 373 |
|
|
| 374 |
|
$this->objectMapping->wakeUpMapping($container); |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
} |
| 378 |
|
|
Tests/Mapping/ArrayMappingTest.php 1 location
|
@@ 204-218 (lines=15) @@
|
| 201 |
|
/** |
| 202 |
|
* @test |
| 203 |
|
*/ |
| 204 |
|
public function shouldWakeUpInnerMapping() |
| 205 |
|
{ |
| 206 |
|
/** @var ContainerInterface $container */ |
| 207 |
|
$container = $this->createMock(ContainerInterface::class); |
| 208 |
|
|
| 209 |
|
$this->mappingA->expects($this->once())->method("wakeUpMapping")->with( |
| 210 |
|
$this->equalTo($container) |
| 211 |
|
); |
| 212 |
|
|
| 213 |
|
$this->mappingB->expects($this->once())->method("wakeUpMapping")->with( |
| 214 |
|
$this->equalTo($container) |
| 215 |
|
); |
| 216 |
|
|
| 217 |
|
$this->arrayMapping->wakeUpMapping($container); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
} |
| 221 |
|
|
Tests/Mapping/EntityMappingTest.php 1 location
|
@@ 179-193 (lines=15) @@
|
| 176 |
|
/** |
| 177 |
|
* @test |
| 178 |
|
*/ |
| 179 |
|
public function shouldWakeUpInnerMapping() |
| 180 |
|
{ |
| 181 |
|
/** @var ContainerInterface $container */ |
| 182 |
|
$container = $this->createMock(ContainerInterface::class); |
| 183 |
|
|
| 184 |
|
$this->fieldMappingA->expects($this->once())->method("wakeUpMapping")->with( |
| 185 |
|
$this->equalTo($container) |
| 186 |
|
); |
| 187 |
|
|
| 188 |
|
$this->fieldMappingB->expects($this->once())->method("wakeUpMapping")->with( |
| 189 |
|
$this->equalTo($container) |
| 190 |
|
); |
| 191 |
|
|
| 192 |
|
$this->entityMapping->wakeUpMapping($container); |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
} |
| 196 |
|
|