From 0c9e0b6856c4ba77a03b90e0ef2c3563fa50d257 Mon Sep 17 00:00:00 2001 From: FazeElian Date: Wed, 20 Dec 2023 10:06:53 -0500 Subject: [PATCH] Test: Un usuario puede acceder a la vista de Registro de Usuario --- tests/Feature/UserTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Feature/UserTest.php b/tests/Feature/UserTest.php index 3d0b02d..4b2c014 100644 --- a/tests/Feature/UserTest.php +++ b/tests/Feature/UserTest.php @@ -30,6 +30,14 @@ public function test_a_user_can_view_a_login_form() { $response->assertViewIs('auth.login'); } + // Test: Un usuario puede acceder a la vista de Registro de Usuario + public function test_a_user_can_view_a_register_form() { + $response = $this->get('/register'); + + $response->assertSuccessful(); + $response->assertViewIs('auth.register'); + } + // Test: Un usuario puede Iniciar SesiĆ³n // public function test_a_user_can_login() { // // Crear un usuario de prueba