From ce8068292cc90e32f93aad353891be5e5108d945 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Fri, 30 Jan 2026 10:09:55 +0000 Subject: Route tests. Ensure the http request to the routes work. --- tests/Feature/RouteTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/Feature/RouteTest.php (limited to 'tests/Feature/RouteTest.php') diff --git a/tests/Feature/RouteTest.php b/tests/Feature/RouteTest.php new file mode 100644 index 0000000..c491d1f --- /dev/null +++ b/tests/Feature/RouteTest.php @@ -0,0 +1,17 @@ +get('/products')->assertOk(); +}); + +it('renders the categories page', function () { + $this->get('/categories')->assertOk(); +}); + +it('renders the orders page', function () { + $this->get('/orders')->assertOk(); +}); + +it('redirects home to products', function () { + $this->get('/')->assertRedirect('/products'); +}); -- cgit v1.2.3