Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/Console/Commands/StaticWarmJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function it_sends_a_get_request()

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

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

$job->handle();

Expand All @@ -45,7 +45,7 @@ public function it_sends_a_get_request_and_dispatches_static_warm_job_for_page_w

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

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

$job->handle();

Expand Down Expand Up @@ -82,7 +82,7 @@ public function subsequent_paginated_pages_dont_dispatch_static_warm_jobs()

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

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

$job->handle();

Expand All @@ -104,7 +104,7 @@ public function it_dispatches_paginated_jobs_when_the_pagination_header_is_folde

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

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

$job->handle();

Expand Down
4 changes: 2 additions & 2 deletions tests/Console/Commands/StaticWarmUncachedJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function it_sends_a_get_request()

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

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

$job->handle();

Expand All @@ -44,7 +44,7 @@ public function it_does_not_send_a_request_if_the_page_is_cached()

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

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

$job->handle();

Expand Down
Loading