diff options
Diffstat (limited to 'tests/app/Http/Middleware')
21 files changed, 735 insertions, 0 deletions
diff --git a/tests/app/Http/Middleware/AuthLoggedInTest.php b/tests/app/Http/Middleware/AuthLoggedInTest.php new file mode 100644 index 0000000000..5c289399f6 --- /dev/null +++ b/tests/app/Http/Middleware/AuthLoggedInTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class AuthLoggedIn + * + * @covers Fisharebest\Webtrees\Http\Middleware\AuthLoggedIn + */ +class AuthLoggedInTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\AuthLoggedIn::class)); + } +} diff --git a/tests/app/Http/Middleware/BadBotBlockerTest.php b/tests/app/Http/Middleware/BadBotBlockerTest.php new file mode 100644 index 0000000000..d2b6f81a50 --- /dev/null +++ b/tests/app/Http/Middleware/BadBotBlockerTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class BadBotBlocker + * + * @covers Fisharebest\Webtrees\Http\Middleware\BadBotBlocker + */ +class BadBotBlockerTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\BadBotBlocker::class)); + } +} diff --git a/tests/app/Http/Middleware/BaseUrlTest.php b/tests/app/Http/Middleware/BaseUrlTest.php new file mode 100644 index 0000000000..f516400d40 --- /dev/null +++ b/tests/app/Http/Middleware/BaseUrlTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class BaseUrl + * + * @covers Fisharebest\Webtrees\Http\Middleware\BaseUrl + */ +class BaseUrlTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\BaseUrl::class)); + } +} diff --git a/tests/app/Http/Middleware/CheckForNewVersionTest.php b/tests/app/Http/Middleware/CheckForNewVersionTest.php new file mode 100644 index 0000000000..440ba2f3eb --- /dev/null +++ b/tests/app/Http/Middleware/CheckForNewVersionTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class CheckForNewVersion + * + * @covers Fisharebest\Webtrees\Http\Middleware\CheckForNewVersion + */ +class CheckForNewVersionTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\CheckForNewVersion::class)); + } +} diff --git a/tests/app/Http/Middleware/ClientIpTest.php b/tests/app/Http/Middleware/ClientIpTest.php new file mode 100644 index 0000000000..95f27edf41 --- /dev/null +++ b/tests/app/Http/Middleware/ClientIpTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class ClientIp + * + * @covers Fisharebest\Webtrees\Http\Middleware\ClientIp + */ +class ClientIpTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\ClientIp::class)); + } +} diff --git a/tests/app/Http/Middleware/CompressResponseTest.php b/tests/app/Http/Middleware/CompressResponseTest.php new file mode 100644 index 0000000000..02662ea027 --- /dev/null +++ b/tests/app/Http/Middleware/CompressResponseTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class CompressResponse + * + * @covers Fisharebest\Webtrees\Http\Middleware\CompressResponse + */ +class CompressResponseTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\CompressResponse::class)); + } +} diff --git a/tests/app/Http/Middleware/ContentLengthTest.php b/tests/app/Http/Middleware/ContentLengthTest.php new file mode 100644 index 0000000000..9abcc3038f --- /dev/null +++ b/tests/app/Http/Middleware/ContentLengthTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class ContentLength + * + * @covers Fisharebest\Webtrees\Http\Middleware\ContentLength + */ +class ContentLengthTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\ContentLength::class)); + } +} diff --git a/tests/app/Http/Middleware/EmitResponseTest.php b/tests/app/Http/Middleware/EmitResponseTest.php new file mode 100644 index 0000000000..437d9aff36 --- /dev/null +++ b/tests/app/Http/Middleware/EmitResponseTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class EmitResponse + * + * @covers Fisharebest\Webtrees\Http\Middleware\EmitResponse + */ +class EmitResponseTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\EmitResponse::class)); + } +} diff --git a/tests/app/Http/Middleware/LoadRoutesTest.php b/tests/app/Http/Middleware/LoadRoutesTest.php new file mode 100644 index 0000000000..8fc3c32269 --- /dev/null +++ b/tests/app/Http/Middleware/LoadRoutesTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class LoadRoutes + * + * @covers Fisharebest\Webtrees\Http\Middleware\LoadRoutes + */ +class LoadRoutesTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\LoadRoutes::class)); + } +} diff --git a/tests/app/Http/Middleware/PhpEnvironmentTest.php b/tests/app/Http/Middleware/PhpEnvironmentTest.php new file mode 100644 index 0000000000..9ea253d53b --- /dev/null +++ b/tests/app/Http/Middleware/PhpEnvironmentTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class PhpEnvironment + * + * @covers Fisharebest\Webtrees\Http\Middleware\PhpEnvironment + */ +class PhpEnvironmentTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\PhpEnvironment::class)); + } +} diff --git a/tests/app/Http/Middleware/ReadConfigIniTest.php b/tests/app/Http/Middleware/ReadConfigIniTest.php new file mode 100644 index 0000000000..4336f2c9ab --- /dev/null +++ b/tests/app/Http/Middleware/ReadConfigIniTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class ReadConfigIni + * + * @covers Fisharebest\Webtrees\Http\Middleware\ReadConfigIni + */ +class ReadConfigIniTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\ReadConfigIni::class)); + } +} diff --git a/tests/app/Http/Middleware/RegisterGedcomTagsTest.php b/tests/app/Http/Middleware/RegisterGedcomTagsTest.php new file mode 100644 index 0000000000..6f469c8d78 --- /dev/null +++ b/tests/app/Http/Middleware/RegisterGedcomTagsTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class RegisterGedcomTags + * + * @covers Fisharebest\Webtrees\Http\Middleware\RegisterGedcomTags + */ +class RegisterGedcomTagsTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\RegisterGedcomTags::class)); + } +} diff --git a/tests/app/Http/Middleware/RequestHandlerTest.php b/tests/app/Http/Middleware/RequestHandlerTest.php new file mode 100644 index 0000000000..a04deed492 --- /dev/null +++ b/tests/app/Http/Middleware/RequestHandlerTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class RequestHandler + * + * @covers Fisharebest\Webtrees\Http\Middleware\RequestHandler + */ +class RequestHandlerTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\RequestHandler::class)); + } +} diff --git a/tests/app/Http/Middleware/RouterTest.php b/tests/app/Http/Middleware/RouterTest.php new file mode 100644 index 0000000000..2398961a01 --- /dev/null +++ b/tests/app/Http/Middleware/RouterTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class Router + * + * @covers Fisharebest\Webtrees\Http\Middleware\Router + */ +class RouterTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\Router::class)); + } +} diff --git a/tests/app/Http/Middleware/SecurityHeadersTest.php b/tests/app/Http/Middleware/SecurityHeadersTest.php new file mode 100644 index 0000000000..fdcc3295f2 --- /dev/null +++ b/tests/app/Http/Middleware/SecurityHeadersTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class SecurityHeaders + * + * @covers Fisharebest\Webtrees\Http\Middleware\SecurityHeaders + */ +class SecurityHeadersTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\SecurityHeaders::class)); + } +} diff --git a/tests/app/Http/Middleware/UpdateDatabaseSchemaTest.php b/tests/app/Http/Middleware/UpdateDatabaseSchemaTest.php new file mode 100644 index 0000000000..bd7e24bf3c --- /dev/null +++ b/tests/app/Http/Middleware/UpdateDatabaseSchemaTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class UpdateDatabaseSchema + * + * @covers Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema + */ +class UpdateDatabaseSchemaTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema::class)); + } +} diff --git a/tests/app/Http/Middleware/UseDatabaseTest.php b/tests/app/Http/Middleware/UseDatabaseTest.php new file mode 100644 index 0000000000..90421c241d --- /dev/null +++ b/tests/app/Http/Middleware/UseDatabaseTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class UseDatabase + * + * @covers Fisharebest\Webtrees\Http\Middleware\UseDatabase + */ +class UseDatabaseTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\UseDatabase::class)); + } +} diff --git a/tests/app/Http/Middleware/UseLanguageTest.php b/tests/app/Http/Middleware/UseLanguageTest.php new file mode 100644 index 0000000000..0ce139435c --- /dev/null +++ b/tests/app/Http/Middleware/UseLanguageTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class UseLanguage + * + * @covers Fisharebest\Webtrees\Http\Middleware\UseLanguage + */ +class UseLanguageTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\UseLanguage::class)); + } +} diff --git a/tests/app/Http/Middleware/UseSessionTest.php b/tests/app/Http/Middleware/UseSessionTest.php new file mode 100644 index 0000000000..dfc54fa64e --- /dev/null +++ b/tests/app/Http/Middleware/UseSessionTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class UseSession + * + * @covers Fisharebest\Webtrees\Http\Middleware\UseSession + */ +class UseSessionTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\UseSession::class)); + } +} diff --git a/tests/app/Http/Middleware/UseThemeTest.php b/tests/app/Http/Middleware/UseThemeTest.php new file mode 100644 index 0000000000..cbafc0d6a1 --- /dev/null +++ b/tests/app/Http/Middleware/UseThemeTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class UseTheme + * + * @covers Fisharebest\Webtrees\Http\Middleware\UseTheme + */ +class UseThemeTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\UseTheme::class)); + } +} diff --git a/tests/app/Http/Middleware/UseTransactionTest.php b/tests/app/Http/Middleware/UseTransactionTest.php new file mode 100644 index 0000000000..c0e9ab333a --- /dev/null +++ b/tests/app/Http/Middleware/UseTransactionTest.php @@ -0,0 +1,35 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2022 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\Middleware; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class UseTransaction + * + * @covers Fisharebest\Webtrees\Http\Middleware\UseTransaction + */ +class UseTransactionTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Middleware\UseTransaction::class)); + } +} |
