diff --git a/.env.testing b/.env.testing new file mode 100644 index 0000000..8832fee --- /dev/null +++ b/.env.testing @@ -0,0 +1,12 @@ +APP_ENV=testing +APP_DEBUG=true + +DB_CONNECTION=sqlite +DB_DATABASE=:memory: +DB_FOREIGN_KEYS=true + +CACHE_STORE=array +SESSION_DRIVER=array +QUEUE_CONNECTION=sync +MAIL_MAILER=array +APP_KEY=base64:l5te51cDfgHrJIbSZRxdJlermb1bjm/EFLf8ooOKJPc= diff --git a/phpunit.xml b/phpunit.xml index e7f0a48..5aa8dca 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -18,13 +18,18 @@ - + + + + + + + + - - diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 22ef0c5..ec26b0f 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -9,13 +9,8 @@ class ExampleTest extends TestCase { use RefreshDatabase; - /** - * A basic test example. - */ public function test_the_application_returns_a_successful_response(): void { - $response = $this->get('/'); - - $response->assertStatus(200); + $this->get('/')->assertOk(); } }