Skip to content

Commit

Permalink
Test Funcional: Un usuario puede acceder a la vista de Inicio de Sesión
Browse files Browse the repository at this point in the history
Test: Un usuario puede acceder a la vista de Inicio de Sesión
  • Loading branch information
FazeElian authored Dec 20, 2023
2 parents bd3d08b + 2e4ca9b commit dc9bbf1
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions tests/Feature/UserTest.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<?php


namespace Tests\Feature;


use Illuminate\Foundation\Testing\RefreshDatabase;

use Illuminate\Foundation\Testing\WithFaker;
// use Illuminate\Foundation\Testing\RefreshDatabase;
// use Illuminate\Foundation\Testing\WithFaker;

use Tests\TestCase;


// Importamos modelo de módulo -> Usuario
use App\Models\User;
// use App\Models\User;

class UserTest extends TestCase
{
Expand All @@ -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() {
Expand Down

0 comments on commit dc9bbf1

Please sign in to comment.