From 2e4ca9be48cdeeae14508a50d181c85d436769c8 Mon Sep 17 00:00:00 2001 From: FazeElian Date: Wed, 20 Dec 2023 10:04:22 -0500 Subject: [PATCH] =?UTF-8?q?Test:=20Un=20usuario=20puede=20acceder=20a=20la?= =?UTF-8?q?=20vista=20de=20Inicio=20de=20Sesi=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Feature/UserTest.php | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tests/Feature/UserTest.php b/tests/Feature/UserTest.php index fdf1a5c..3d0b02d 100644 --- a/tests/Feature/UserTest.php +++ b/tests/Feature/UserTest.php @@ -1,18 +1,14 @@ Usuario -use App\Models\User; +// use App\Models\User; class UserTest extends TestCase { @@ -21,18 +17,18 @@ class UserTest extends TestCase */ public function test_example(): void { - $response = $this->get('/login'); // Verificar que el usuario pueda acceder a la ruta de la vista de Inicio de sesión + $response = $this->get('/'); // Verificar que el usuario pueda acceder a la ruta principal $response->assertStatus(200); } // Test: Un usuario puede acceder a la vista de Inicio de Sesión - // public function test_a_user_can_view_a_login_form() { - // $response = $this->get('/login'); + public function test_a_user_can_view_a_login_form() { + $response = $this->get('/login'); - // $response->assertSuccessful(); - // $response->assertViewIs('auth.login'); - // } + $response->assertSuccessful(); + $response->assertViewIs('auth.login'); + } // Test: Un usuario puede Iniciar Sesión // public function test_a_user_can_login() {