summaryrefslogtreecommitdiff
path: root/tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php')
-rw-r--r--tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php b/tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php
index d00e692da6..94119edec9 100644
--- a/tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php
+++ b/tests/app/Http/RequestHandlers/SiteLogsDownloadTest.php
@@ -33,16 +33,16 @@ class SiteLogsDownloadTest extends TestCase
{
$request = self::createRequest();
- $query1 = $this->createMock(Builder::class);
- $query2 = $this->createMock(Builder::class);
- $rows1 = $this->createMock(Collection::class);
- $rows2 = $this->createMock(Collection::class);
+ $query1 = $this->createStub(Builder::class);
+ $query2 = $this->createStub(Builder::class);
+ $rows1 = $this->createStub(Collection::class);
+ $rows2 = $this->createStub(Collection::class);
$query1->method('orderBy')->willReturn($query2);
$query2->method('get')->willReturn($rows1);
$rows1->method('map')->willReturn($rows2);
$rows2->method('implode')->willReturn('foo,bar');
- $site_logs_service = $this->createMock(SiteLogsService::class);
+ $site_logs_service = $this->createStub(SiteLogsService::class);
$site_logs_service->method('logsQuery')->willReturn($query1);
$handler = new SiteLogsDownload($site_logs_service);