summaryrefslogtreecommitdiff
path: root/tests/Feature
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2026-01-30 10:09:55 +0000
committerSam Light <samlight1994@gmail.com>2026-01-30 10:09:55 +0000
commitce8068292cc90e32f93aad353891be5e5108d945 (patch)
tree67eef7efd29437a724bdd096052e551b81b15fdf /tests/Feature
parent1882d25b01ff8e3fefc1848052a82fe1da5fa17b (diff)
Route tests. Ensure the http request to the routes work.HEADv2.0.0master
Diffstat (limited to 'tests/Feature')
-rw-r--r--tests/Feature/RouteTest.php17
1 files changed, 17 insertions, 0 deletions
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 @@
+<?php
+
+it('renders the products page', function () {
+ $this->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');
+});