From 9668d1084b9f2b891a926c5263144396c3b9b22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 1 Jan 2020 19:32:07 +0100 Subject: [PATCH] Added an simple smoke test to ensure that pages are accessible. --- .../ApplicationAvailabilityFunctionalTest.php | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 tests/ApplicationAvailabilityFunctionalTest.php diff --git a/tests/ApplicationAvailabilityFunctionalTest.php b/tests/ApplicationAvailabilityFunctionalTest.php new file mode 100644 index 00000000..9d5ab4ac --- /dev/null +++ b/tests/ApplicationAvailabilityFunctionalTest.php @@ -0,0 +1,93 @@ + 'admin', + 'PHP_AUTH_PW' => 'test', + ]); + + $client->request('GET', $url); + + $this->assertTrue($client->getResponse()->isSuccessful()); + } + + + public function urlProvider() + { + //Homepage + yield ['/']; + //User related things + yield ['/user/settings']; + yield ['/user/info']; + + //Part lists + yield ['/category/1/parts']; + yield ['/footprint/1/parts']; + yield ['/manufacturer/1/parts']; + yield ['/store_location/1/parts']; + yield ['/supplier/1/parts']; + yield ['/parts/by_tag/Test']; + yield ['/parts/search/test']; + yield ['/parts']; + + //Login/logout + yield ['/login']; + + //Tree views + yield ['/tree/tools']; + yield ['/tree/category/1']; + yield ['/tree/categories']; + yield ['/tree/footprint/1']; + yield ['/tree/footprints']; + yield ['/tree/location/1']; + yield ['/tree/locations']; + yield ['/tree/manufacturer/1']; + yield ['/tree/manufacturers']; + yield ['/tree/supplier/1']; + yield ['/tree/suppliers']; + //yield ['/tree/device/1']; + yield ['/tree/devices']; + + //Typeahead + yield ['/typeahead/builtInResources/search/DIP8']; + yield ['/typeahead/tags/search/test']; + } +} \ No newline at end of file