Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
Updated tests
1 was failing due to redirect for when no users exist
  • Loading branch information
cp6 committed Sep 24, 2023
1 parent 827fc57 commit f4bd6e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 28 deletions.
2 changes: 2 additions & 0 deletions tests/Feature/Auth/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AuthenticationTest extends TestCase

public function test_login_screen_can_be_rendered()
{
$user = User::factory()->create();

$response = $this->get('/login');

$response->assertStatus(200);
Expand Down
7 changes: 0 additions & 7 deletions tests/Feature/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ class AuthenticationTest extends TestCase
{
use RefreshDatabase;

public function test_login_screen_can_be_rendered()
{
$response = $this->get('/login');

$response->assertStatus(200);
}

public function test_users_can_authenticate_using_the_login_screen()
{
$user = User::factory()->create();
Expand Down
21 changes: 0 additions & 21 deletions tests/Feature/ExampleTest.php

This file was deleted.

0 comments on commit f4bd6e6

Please sign in to comment.