summaryrefslogtreecommitdiff
path: root/tests/Feature
diff options
context:
space:
mode:
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');
+});