. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\SiteLogsService; use Fisharebest\Webtrees\TestCase; use Illuminate\Database\Query\Builder; /** * @covers \Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete */ class SiteLogsDeleteTest extends TestCase { /** * @return void */ public function testResponse(): void { $request = self::createRequest(); $query = $this->createStub(Builder::class); $query->method('delete'); $site_logs_service = $this->createStub(SiteLogsService::class); $site_logs_service->method('logsQuery')->willReturn($query); $handler = new SiteLogsDelete($site_logs_service); $response = $handler->handle($request); static::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode()); } }