Tests/Doctrine/EventListenerTest.php 1 location
|
@@ 48-59 (lines=12) @@
|
| 45 |
|
*/ |
| 46 |
|
private $dbalDataLoader; |
| 47 |
|
|
| 48 |
|
public function setUp() |
| 49 |
|
{ |
| 50 |
|
$this->entityServiceHydrator = $this->createMock(EntityHydratorInterface::class); |
| 51 |
|
$this->mappingDriver = $this->createMock(MappingDriverInterface::class); |
| 52 |
|
$this->dbalDataLoader = $this->createMock(DataLoaderInterface::class); |
| 53 |
|
|
| 54 |
|
$this->eventListener = new EventListener( |
| 55 |
|
$this->entityServiceHydrator, |
| 56 |
|
$this->mappingDriver, |
| 57 |
|
$this->dbalDataLoader |
| 58 |
|
); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** |
| 62 |
|
* @test |
Tests/Hydration/EntityHydratorTest.php 1 location
|
@@ 52-63 (lines=12) @@
|
| 49 |
|
*/ |
| 50 |
|
private $dbalDataLoader; |
| 51 |
|
|
| 52 |
|
public function setUp() |
| 53 |
|
{ |
| 54 |
|
$this->valueResolver = $this->createMock(ValueResolverInterface::class); |
| 55 |
|
$this->mappingDriver = $this->createMock(MappingDriverInterface::class); |
| 56 |
|
$this->dbalDataLoader = $this->createMock(DataLoaderInterface::class); |
| 57 |
|
|
| 58 |
|
$this->hydrator = new EntityHydrator( |
| 59 |
|
$this->valueResolver, |
| 60 |
|
$this->mappingDriver, |
| 61 |
|
$this->dbalDataLoader |
| 62 |
|
); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
/** |
| 66 |
|
* @test |