Skip to content

Commit

Permalink
Update PHPUnit test status and assert status code
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisGautier committed Jan 2, 2024
1 parent 7e219c0 commit 0f0cd7e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,3 @@ jobs:
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":[],"times":{"Tests\\Unit\\ExampleTest::test_example":0.01,"Tests\\Feature\\ExampleTest::test_example":0.033}}
{"version":1,"defects":{"Tests\\Feature\\ExampleTest::test_example":7},"times":{"Tests\\Unit\\ExampleTest::test_example":0.01,"Tests\\Feature\\ExampleTest::test_example":0.055}}
2 changes: 1 addition & 1 deletion tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public function test_example()
{
$response = $this->get('/');

$response->assertStatus(302);
$response->assertStatus(200);
}
}

0 comments on commit 0f0cd7e

Please sign in to comment.