Skip to content

Commit 065741b

Browse files
committed
fix test
1 parent 3f2c755 commit 065741b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/Middleware/ForceHttpsSpec.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,11 @@
302302
$routeResult = RouteResult::fromRoute(new Route('/about', Double::instance(['implements' => MiddlewareInterface::class])));
303303

304304
allow($this->router)->toReceive('match')->andReturn($routeResult);
305+
allow($this->uri)->toReceive('__toString')->andReturn('https://www.example.com/about');
305306
allow($this->request)->toReceive('getUri')->andReturn($this->uri);
306307
allow($this->uri)->toReceive('getScheme')->andReturn('http');
307308
allow($this->uri)->toReceive('withScheme')->andReturn($this->uri);
308-
allow($this->uri)->toReceive('__toString')->andReturn('https://www.example.com/about');
309+
allow($this->uri)->toReceive('__toString')->andReturn('https://example.com/about');
309310

310311
$handler = Double::instance(['implements' => RequestHandlerInterface::class]);
311312
allow($handler)->toReceive('handle')->with($this->request)->andReturn($this->response);

0 commit comments

Comments
 (0)