Skip to content

Commit 010e0f9

Browse files
authored
[6.x] Merge 5.x (#14898)
2 parents f1442b0 + ab1a9d5 commit 010e0f9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/Console/Commands/StaticWarmJobTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function it_sends_a_get_request()
2323

2424
$handlerStack = HandlerStack::create($mock);
2525

26-
$job = new StaticWarmJob(new Request('GET', '/about'), ['handler' => $handlerStack]);
26+
$job = new StaticWarmJob(new Request('GET', 'http://localhost/about'), ['handler' => $handlerStack]);
2727

2828
$job->handle();
2929

@@ -45,7 +45,7 @@ public function it_sends_a_get_request_and_dispatches_static_warm_job_for_page_w
4545

4646
$handlerStack = HandlerStack::create($mock);
4747

48-
$job = new StaticWarmJob(new Request('GET', '/blog'), ['handler' => $handlerStack]);
48+
$job = new StaticWarmJob(new Request('GET', 'http://localhost/blog'), ['handler' => $handlerStack]);
4949

5050
$job->handle();
5151

@@ -82,7 +82,7 @@ public function subsequent_paginated_pages_dont_dispatch_static_warm_jobs()
8282

8383
$handlerStack = HandlerStack::create($mock);
8484

85-
$job = new StaticWarmJob(new Request('GET', '/blog?page=2'), ['handler' => $handlerStack]);
85+
$job = new StaticWarmJob(new Request('GET', 'http://localhost/blog?page=2'), ['handler' => $handlerStack]);
8686

8787
$job->handle();
8888

@@ -104,7 +104,7 @@ public function it_dispatches_paginated_jobs_when_the_pagination_header_is_folde
104104

105105
$handlerStack = HandlerStack::create($mock);
106106

107-
$job = new StaticWarmJob(new Request('GET', '/blog'), ['handler' => $handlerStack]);
107+
$job = new StaticWarmJob(new Request('GET', 'http://localhost/blog'), ['handler' => $handlerStack]);
108108

109109
$job->handle();
110110

tests/Console/Commands/StaticWarmUncachedJobTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function it_sends_a_get_request()
2323

2424
$handlerStack = HandlerStack::create($mock);
2525

26-
$job = new StaticWarmUncachedJob(new Request('GET', '/about'), ['handler' => $handlerStack]);
26+
$job = new StaticWarmUncachedJob(new Request('GET', 'http://localhost/about'), ['handler' => $handlerStack]);
2727

2828
$job->handle();
2929

@@ -44,7 +44,7 @@ public function it_does_not_send_a_request_if_the_page_is_cached()
4444

4545
$handlerStack = HandlerStack::create($mock);
4646

47-
$job = new StaticWarmUncachedJob(new Request('GET', '/about'), ['handler' => $handlerStack]);
47+
$job = new StaticWarmUncachedJob(new Request('GET', 'http://localhost/about'), ['handler' => $handlerStack]);
4848

4949
$job->handle();
5050

0 commit comments

Comments
 (0)