. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\MediaFileService; use Fisharebest\Webtrees\TestCase; /** * Test ManageMediaPage class. * * @covers \Fisharebest\Webtrees\Http\Controllers\Admin\ManageMediaPage */ class ManageMediaPageTest extends TestCase { /** * @return void */ public function testIndex(): void { $media_file_service = new MediaFileService(); $handler = new ManageMediaPage($media_file_service); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); } }