Updated tests

Updated tests
1 was failing due to redirect for when no users exist
This commit is contained in:
cp6 2023-09-24 21:35:34 +10:00
parent 827fc57af6
commit f4bd6e6d66
3 changed files with 2 additions and 28 deletions

View File

@ -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);

View File

@ -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();

View File

@ -1,21 +0,0 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}