xref: /webtrees/tests/app/Http/RequestHandlers/UserAddPageTest.php (revision 202c018b592d5a516e4a465dc6dc515f3be37399)
14c3563c0SGreg Roach<?php
24c3563c0SGreg Roach
34c3563c0SGreg Roach/**
44c3563c0SGreg Roach * webtrees: online genealogy
5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
64c3563c0SGreg Roach * This program is free software: you can redistribute it and/or modify
74c3563c0SGreg Roach * it under the terms of the GNU General Public License as published by
84c3563c0SGreg Roach * the Free Software Foundation, either version 3 of the License, or
94c3563c0SGreg Roach * (at your option) any later version.
104c3563c0SGreg Roach * This program is distributed in the hope that it will be useful,
114c3563c0SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
124c3563c0SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
134c3563c0SGreg Roach * GNU General Public License for more details.
144c3563c0SGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
164c3563c0SGreg Roach */
174c3563c0SGreg Roach
184c3563c0SGreg Roachdeclare(strict_types=1);
194c3563c0SGreg Roach
204c3563c0SGreg Roachnamespace Fisharebest\Webtrees\Http\RequestHandlers;
214c3563c0SGreg Roach
224c3563c0SGreg Roachuse Fig\Http\Message\StatusCodeInterface;
234c3563c0SGreg Roachuse Fisharebest\Webtrees\TestCase;
24*202c018bSGreg Roachuse PHPUnit\Framework\Attributes\CoversClass;
254c3563c0SGreg Roach
26*202c018bSGreg Roach
27*202c018bSGreg Roach#[CoversClass(UserAddPage::class)]
284c3563c0SGreg Roachclass UserAddPageTest extends TestCase
294c3563c0SGreg Roach{
30cd94ca66SGreg Roach    protected static bool $uses_database = true;
314c3563c0SGreg Roach
324c3563c0SGreg Roach    public function testHandler(): void
334c3563c0SGreg Roach    {
344c3563c0SGreg Roach        $handler  = new UserAddPage();
354c3563c0SGreg Roach        $request  = self::createRequest();
364c3563c0SGreg Roach        $response = $handler->handle($request);
374c3563c0SGreg Roach
384c3563c0SGreg Roach        self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
394c3563c0SGreg Roach    }
404c3563c0SGreg Roach}
41