We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 737af7d commit 46ec780Copy full SHA for 46ec780
tests/TestCases/ContainerTestCase.php
@@ -167,9 +167,11 @@ protected function mockConfig(array $options = array())
167
*/
168
protected function mockUrl()
169
{
170
- $this->mock('url', 'Illuminate\Routing\UrlGenerator', function ($mock) {
+ $request = $this->mockRequest();
171
+
172
+ $this->mock('url', 'Illuminate\Routing\UrlGenerator', function ($mock) use ($request) {
173
return $mock
- ->shouldReceive('getRequest')->andReturn($this->mockRequest())
174
+ ->shouldReceive('getRequest')->andReturn($request)
175
->shouldReceive('to')->andReturnUsing(function ($url) {
176
return $url == '#' ? $url : 'https://test/en/'.$url;
177
})
0 commit comments