dishplanner/tests/Browser/RedirectTest.php

15 lines
322 B
PHP
Raw Permalink Normal View History

<?php
it('redirects unauthenticated users to login', function () {
visit('/dashboard')
->assertPathIs('/login')
->assertSee('Sign In');
});
it('loads the login page', function () {
visit('/login')
->assertPathIs('/login')
->assertSee('Email')
->assertSee('Password');
});