mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-10-30 22:09:10 +00:00 
			
		
		
		
	Updated tests
Updated tests 1 was failing due to redirect for when no users exist
This commit is contained in:
		
							parent
							
								
									827fc57af6
								
							
						
					
					
						commit
						f4bd6e6d66
					
				
					 3 changed files with 2 additions and 28 deletions
				
			
		|  | @ -13,6 +13,8 @@ class AuthenticationTest extends TestCase | ||||||
| 
 | 
 | ||||||
|     public function test_login_screen_can_be_rendered() |     public function test_login_screen_can_be_rendered() | ||||||
|     { |     { | ||||||
|  |         $user = User::factory()->create(); | ||||||
|  | 
 | ||||||
|         $response = $this->get('/login'); |         $response = $this->get('/login'); | ||||||
| 
 | 
 | ||||||
|         $response->assertStatus(200); |         $response->assertStatus(200); | ||||||
|  |  | ||||||
|  | @ -11,13 +11,6 @@ class AuthenticationTest extends TestCase | ||||||
| { | { | ||||||
|     use RefreshDatabase; |     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() |     public function test_users_can_authenticate_using_the_login_screen() | ||||||
|     { |     { | ||||||
|         $user = User::factory()->create(); |         $user = User::factory()->create(); | ||||||
|  |  | ||||||
|  | @ -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); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue