Tests/DataLoader/DataLoaderLazyLoadProxyTest.php 1 location
|
@@ 39-49 (lines=11) @@
|
36 |
|
*/ |
37 |
|
private $container; |
38 |
|
|
39 |
|
public function setUp() |
40 |
|
{ |
41 |
|
$this->container = $this->createMock(ContainerInterface::class); |
42 |
|
$this->innerDataLoader = $this->createMock(DataLoaderInterface::class); |
43 |
|
|
44 |
|
$this->container->method('get')->will($this->returnValueMap([ |
45 |
|
["some_service", ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $this->innerDataLoader], |
46 |
|
])); |
47 |
|
|
48 |
|
$this->dataLoaderProxy = new DataLoaderLazyLoadProxy($this->container, "some_service"); |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
|
* @test |
Tests/Hydration/EntityHydratorLazyLoadProxyTest.php 1 location
|
@@ 38-48 (lines=11) @@
|
35 |
|
*/ |
36 |
|
private $innerHydrator; |
37 |
|
|
38 |
|
public function setUp() |
39 |
|
{ |
40 |
|
$this->innerHydrator = $this->createMock(EntityHydratorInterface::class); |
41 |
|
|
42 |
|
$this->container = $this->createMock(ContainerInterface::class); |
43 |
|
$this->container->method("get")->will($this->returnValueMap([ |
44 |
|
["some_service_id", ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $this->innerHydrator] |
45 |
|
])); |
46 |
|
|
47 |
|
$this->hydratorProxy = new EntityHydratorLazyLoadProxy($this->container, "some_service_id"); |
48 |
|
} |
49 |
|
|
50 |
|
/** |
51 |
|
* @test |