src/Kunstmaan/AdminBundle/Tests/Helper/DomainConfigurationTest.php 1 location
|
@@ 94-108 (lines=15) @@
|
91 |
|
$this->assertEquals(array('nl', 'fr', 'en'), $object->getBackendLocales()); |
92 |
|
} |
93 |
|
|
94 |
|
private function getContainer($map) |
95 |
|
{ |
96 |
|
$this->container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
97 |
|
|
98 |
|
$this->container |
99 |
|
->method('getParameter') |
100 |
|
->will($this->returnValueMap($map)); |
101 |
|
$this->container |
102 |
|
->expects($this->any()) |
103 |
|
->method('get') |
104 |
|
->with($this->equalTo('request_stack')) |
105 |
|
->willReturn($this->getRequestStack()); |
106 |
|
|
107 |
|
return $this->container; |
108 |
|
} |
109 |
|
|
110 |
|
private function getRequestStack() |
111 |
|
{ |
src/Kunstmaan/AdminListBundle/Tests/Helper/DomainConfigurationTest.php 1 location
|
@@ 47-61 (lines=15) @@
|
44 |
|
$this->assertNull($this->object->getHostBaseUrl()); |
45 |
|
} |
46 |
|
|
47 |
|
private function getContainer($map) |
48 |
|
{ |
49 |
|
$this->container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
50 |
|
|
51 |
|
$this->container |
52 |
|
->method('getParameter') |
53 |
|
->will($this->returnValueMap($map)); |
54 |
|
$this->container |
55 |
|
->expects($this->any()) |
56 |
|
->method('get') |
57 |
|
->with($this->equalTo('request_stack')) |
58 |
|
->willReturn($this->getRequestStack()); |
59 |
|
|
60 |
|
return $this->container; |
61 |
|
} |
62 |
|
|
63 |
|
private function getRequestStack() |
64 |
|
{ |