Skip to content

Commit 67693e0

Browse files
committed
reverted change
1 parent 28e423e commit 67693e0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/Plugin/BaseUriPluginSpec.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ function it_adds_domain_and_path(
3636
UriInterface $host,
3737
UriInterface $uri
3838
) {
39-
$host->getScheme()->shouldBeCalled()->willReturn('https://');
39+
$host->getScheme()->shouldBeCalled()->willReturn('http://');
4040
$host->getHost()->shouldBeCalled()->willReturn('example.com');
4141
$host->getPort()->shouldBeCalled()->willReturn(8000);
4242
$host->getPath()->shouldBeCalled()->willReturn('/api');
4343

4444
$request->getUri()->shouldBeCalled()->willReturn($uri);
4545
$request->withUri($uri)->shouldBeCalled()->willReturn($request);
4646

47-
$uri->withScheme('https://')->shouldBeCalled()->willReturn($uri);
47+
$uri->withScheme('http://')->shouldBeCalled()->willReturn($uri);
4848
$uri->withHost('example.com')->shouldBeCalled()->willReturn($uri);
4949
$uri->withPort(8000)->shouldBeCalled()->willReturn($uri);
5050
$uri->withPath('/api/users')->shouldBeCalled()->willReturn($uri);
@@ -60,15 +60,15 @@ function it_adds_domain(
6060
UriInterface $host,
6161
UriInterface $uri
6262
) {
63-
$host->getScheme()->shouldBeCalled()->willReturn('https://');
63+
$host->getScheme()->shouldBeCalled()->willReturn('http://');
6464
$host->getHost()->shouldBeCalled()->willReturn('example.com');
6565
$host->getPort()->shouldBeCalled()->willReturn(8000);
6666
$host->getPath()->shouldBeCalled()->willReturn('/');
6767

6868
$request->getUri()->shouldBeCalled()->willReturn($uri);
6969
$request->withUri($uri)->shouldBeCalled()->willReturn($request);
7070

71-
$uri->withScheme('https://')->shouldBeCalled()->willReturn($uri);
71+
$uri->withScheme('http://')->shouldBeCalled()->willReturn($uri);
7272
$uri->withHost('example.com')->shouldBeCalled()->willReturn($uri);
7373
$uri->withPort(8000)->shouldBeCalled()->willReturn($uri);
7474
$uri->getHost()->shouldBeCalled()->willReturn('');
@@ -82,15 +82,15 @@ function it_replaces_domain_and_adds_path(
8282
UriInterface $host,
8383
UriInterface $uri
8484
) {
85-
$host->getScheme()->shouldBeCalled()->willReturn('https://');
85+
$host->getScheme()->shouldBeCalled()->willReturn('http://');
8686
$host->getHost()->shouldBeCalled()->willReturn('example.com');
8787
$host->getPort()->shouldBeCalled()->willReturn(8000);
8888
$host->getPath()->shouldBeCalled()->willReturn('/api');
8989

9090
$request->getUri()->shouldBeCalled()->willReturn($uri);
9191
$request->withUri($uri)->shouldBeCalled()->willReturn($request);
9292

93-
$uri->withScheme('https://')->shouldBeCalled()->willReturn($uri);
93+
$uri->withScheme('http://')->shouldBeCalled()->willReturn($uri);
9494
$uri->withHost('example.com')->shouldBeCalled()->willReturn($uri);
9595
$uri->withPort(8000)->shouldBeCalled()->willReturn($uri);
9696
$uri->withPath('/api/users')->shouldBeCalled()->willReturn($uri);

0 commit comments

Comments
 (0)