Skip to content

Commit bde52dc

Browse files
committed
fix test
1 parent 065741b commit bde52dc

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
@@ -269,9 +269,10 @@
269269

270270
allow($this->router)->toReceive('match')->andReturn($routeResult);
271271
allow($this->request)->toReceive('getUri')->andReturn($this->uri);
272+
allow($this->uri)->toReceive('__toString')->andReturn('https://example.com/about');
272273
allow($this->uri)->toReceive('getScheme')->andReturn('http');
273274
allow($this->uri)->toReceive('withScheme')->andReturn($this->uri);
274-
allow($this->uri)->toReceive('__toString')->andReturn('https://example.com/about');
275+
allow($this->uri)->toReceive('__toString')->andReturn('https://www.example.com/about');
275276

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

0 commit comments

Comments
 (0)