diff options
| -rw-r--r-- | tests/Feature/RouteTest.php | 17 |
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'); +}); |
