-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TM-785] Unit testing and linting for the BE repo #135
Conversation
…y in a single test run.
I'm torn on this approach for setting up the roles, but it's what we're using and leaving it commented out in tests is making the tests fail when run in isolation. The --fresh flag should never be needed, and without it the artisan command is quick and idempotent.
9d85f0f
to
353c15b
Compare
353c15b
to
5818748
Compare
{ | ||
if (! config('app.sns.enabled')) { | ||
return null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should likely remove the SNS integration entirely as it's only useful for mobile apps, but for now this will do.
@@ -392,7 +390,7 @@ | |||
Route::get('/projects', ViewMyProjectsController::class); | |||
}); | |||
|
|||
Route::post('/users/resend', [AuthController::class, 'resendByEmail']); | |||
Route::post('/users/resend', [AuthController::class, 'resendByEmail'])->withoutMiddleware('auth:service-api-key,api'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the first bug found by the resurrected test suite. This endpoint currently doesn't work in production, but as far as I know nobody has reported it yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lot of changes, glad that we have test back.
[TM-785] Unit testing and linting for the BE repo
https://gfw.atlassian.net/browse/TM-785
make test
staging
,main
orrelease/**