Fix HTTP tests
Closed this issue · 0 comments
choco14t commented
Run test in local succeed.
But in Scrutinizer fail.
There were 3 failures:
1) Tests\Feature\GetArticleTest::testFilterByTag
Expected status code 200 but received 500.
Failed asserting that false is true.
/home/scrutinizer/build/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:185
/home/scrutinizer/build/tests/Feature/GetArticleTest.php:23
2) Tests\Feature\GetArticleTest::testFilterByAuthor
Expected status code 200 but received 500.
Failed asserting that false is true.
/home/scrutinizer/build/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:185
/home/scrutinizer/build/tests/Feature/GetArticleTest.php:34
3) Tests\Feature\GetArticleTest::testFilterByFavorited
Expected status code 200 but received 500.
Failed asserting that false is true.
/home/scrutinizer/build/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:185
/home/scrutinizer/build/tests/Feature/GetArticleTest.php:45
FAILURES!
Tests: 5, Assertions: 5, Failures: 3.