diff --git a/phpunit.xml b/phpunit.xml index c609c44fa0..7c96bdee3e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -45,6 +45,9 @@ ./tests/integration + + ./tests/feature + diff --git a/tests/feature/Http/Home/IndexControllerTest.php b/tests/feature/Http/Home/IndexControllerTest.php new file mode 100644 index 0000000000..836b15343a --- /dev/null +++ b/tests/feature/Http/Home/IndexControllerTest.php @@ -0,0 +1,53 @@ +createUser(); + $response = $this->actingAs($user)->get('/'); + + $response->assertStatus(302); + } + + public function test_debug(): void + { + $user = $this->createUser(); + $response = $this->actingAs($user)->get('/debug'); + + $response->assertStatus(200); + } +} diff --git a/tests/feature/TestCase.php b/tests/feature/TestCase.php new file mode 100644 index 0000000000..bc448931a6 --- /dev/null +++ b/tests/feature/TestCase.php @@ -0,0 +1,42 @@ + 'james@firefly', + 'password' => 'secret' + ] + ); + + } +}