-
Notifications
You must be signed in to change notification settings - Fork 106
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
fix local unit test running caused by the missing date_default_timezone_set #78
Conversation
working on the api library standalone on local When this setting is set true then the missing defaults that can cause issues are being set
tests/TestCase.php
Outdated
*/ | ||
private function setDefaultsDuringDevelopment() | ||
{ | ||
if ($this->isDev()) { |
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.
what's the downside on skipping the dev flag and isDev for these unit tests?
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.
Right now nothing because the only setting we apply is the default time zone and only if the client doesn't have a default value for that, but for the future I'd say this flag will be useful
If you say that do it more agile and skip the parts that's not really necessary for us now I can remove it
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.
I believe is better to remove for simplicity. Unit tests are mostly considered dev env anyway.
Description
Add new setting to the config/tests.ini where it can be set if you are
working on the api library standalone on local
When this setting is set true then the missing defaults that can cause
issues are being set