. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\TreeService; use Fisharebest\Webtrees\Services\UserService; use Fisharebest\Webtrees\TestCase; use Illuminate\Support\Collection; /** * @covers \Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage */ class SiteLogsPageTest extends TestCase { /** * @return void */ public function testResponse(): void { $request = self::createRequest(); $tree_service = $this->createStub(TreeService::class); $tree_service->method('all')->willReturn(new Collection()); $user_service = $this->createStub(UserService::class); $user_service->method('all')->willReturn(new Collection()); $handler = new SiteLogsPage($tree_service, $user_service); $response = $handler->handle($request); $this->assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); } }