Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | protected function getRequestStack() |
||
36 | { |
||
37 | $currentRequest = $this->getMockBuilder(Request::class)->getMock(); |
||
38 | $currentRequest->method('getLocale') |
||
39 | ->will( |
||
40 | $this->returnValue('nl') |
||
41 | ); |
||
42 | |||
43 | $requestStack = $this->getMockBuilder(RequestStack::class)->getMock(); |
||
44 | $requestStack->method('getCurrentRequest') |
||
45 | ->will( |
||
46 | $this->returnValue( |
||
47 | $currentRequest |
||
48 | ) |
||
49 | ); |
||
50 | |||
51 | return $requestStack; |
||
52 | } |
||
53 | |||
81 |