1*4b3ef6caSGreg Roach<?php 2*4b3ef6caSGreg Roach 3*4b3ef6caSGreg Roach/** 4*4b3ef6caSGreg Roach * webtrees: online genealogy 5*4b3ef6caSGreg Roach * Copyright (C) 2021 webtrees development team 6*4b3ef6caSGreg Roach * This program is free software: you can redistribute it and/or modify 7*4b3ef6caSGreg Roach * it under the terms of the GNU General Public License as published by 8*4b3ef6caSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9*4b3ef6caSGreg Roach * (at your option) any later version. 10*4b3ef6caSGreg Roach * This program is distributed in the hope that it will be useful, 11*4b3ef6caSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*4b3ef6caSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*4b3ef6caSGreg Roach * GNU General Public License for more details. 14*4b3ef6caSGreg Roach * You should have received a copy of the GNU General Public License 15*4b3ef6caSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 16*4b3ef6caSGreg Roach */ 17*4b3ef6caSGreg Roach 18*4b3ef6caSGreg Roachdeclare(strict_types=1); 19*4b3ef6caSGreg Roach 20*4b3ef6caSGreg Roachnamespace Fisharebest\Webtrees\Http\RequestHandlers; 21*4b3ef6caSGreg Roach 22*4b3ef6caSGreg Roachuse Fig\Http\Message\StatusCodeInterface; 23*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\TestCase; 24*4b3ef6caSGreg Roach 25*4b3ef6caSGreg Roach/** 26*4b3ef6caSGreg Roach * Test FixLevel0MediaPageTest class. 27*4b3ef6caSGreg Roach * 28*4b3ef6caSGreg Roach * @covers \Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaPageTest 29*4b3ef6caSGreg Roach */ 30*4b3ef6caSGreg Roachclass FixLevel0MediaPageTest extends TestCase 31*4b3ef6caSGreg Roach{ 32*4b3ef6caSGreg Roach /** 33*4b3ef6caSGreg Roach * @return void 34*4b3ef6caSGreg Roach */ 35*4b3ef6caSGreg Roach public function testFixLevel0Media(): void 36*4b3ef6caSGreg Roach { 37*4b3ef6caSGreg Roach $handler = new FixLevel0MediaPage(); 38*4b3ef6caSGreg Roach $request = self::createRequest(); 39*4b3ef6caSGreg Roach $response = $handler->handle($request); 40*4b3ef6caSGreg Roach 41*4b3ef6caSGreg Roach self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 42*4b3ef6caSGreg Roach } 43*4b3ef6caSGreg Roach} 44