Skip to content

Commit

Permalink
Test Funcional: Un usuario puede acceder a la vista de Registro de Us…
Browse files Browse the repository at this point in the history
…uario

Test: Un usuario puede acceder a la vista de Registro de Usuario
  • Loading branch information
FazeElian authored Dec 20, 2023
2 parents dc9bbf1 + 0c9e0b6 commit b005c27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Feature/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b005c27

Please sign in to comment.