| @@ 130-146 (lines=17) @@ | ||
| 127 | )); |
|
| 128 | } |
|
| 129 | ||
| 130 | private function createEntityManagerMock(): EntityManagerInterface |
|
| 131 | { |
|
| 132 | /** @var EntityManagerInterface $entityManager */ |
|
| 133 | $entityManager = $this->createMock(EntityManagerInterface::class); |
|
| 134 | ||
| 135 | /** @var Connection $connection */ |
|
| 136 | $connection = $this->createMock(Connection::class); |
|
| 137 | ||
| 138 | $entityManager->method('getConnection')->willReturn($connection); |
|
| 139 | ||
| 140 | /** @var AbstractPlatform $platform */ |
|
| 141 | $platform = $this->createMock(AbstractPlatform::class); |
|
| 142 | ||
| 143 | $connection->method('getDatabasePlatform')->willReturn($platform); |
|
| 144 | ||
| 145 | return $entityManager; |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * @test |
|
| @@ 340-356 (lines=17) @@ | ||
| 337 | $this->objectMapping->assertValue($context, $dataFromAdditionalColumns, $actualValue); |
|
| 338 | } |
|
| 339 | ||
| 340 | private function createEntityManagerMock(): EntityManagerInterface |
|
| 341 | { |
|
| 342 | /** @var EntityManagerInterface $entityManager */ |
|
| 343 | $entityManager = $this->createMock(EntityManagerInterface::class); |
|
| 344 | ||
| 345 | /** @var Connection $connection */ |
|
| 346 | $connection = $this->createMock(Connection::class); |
|
| 347 | ||
| 348 | $entityManager->method('getConnection')->willReturn($connection); |
|
| 349 | ||
| 350 | /** @var AbstractPlatform $platform */ |
|
| 351 | $platform = $this->createMock(AbstractPlatform::class); |
|
| 352 | ||
| 353 | $connection->method('getDatabasePlatform')->willReturn($platform); |
|
| 354 | ||
| 355 | return $entityManager; |
|
| 356 | } |
|
| 357 | ||
| 358 | /** |
|
| 359 | * @test |
|