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