Skip to content
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

Merged
merged 5 commits into from
Oct 22, 2018

Conversation

cyattilakiss
Copy link
Contributor

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

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
@rkewlani rkewlani requested review from lancergr, rikterbeek and maassenbas and removed request for rikterbeek October 12, 2018 14:17
*/
private function setDefaultsDuringDevelopment()
{
if ($this->isDev()) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@cyattilakiss cyattilakiss merged commit a1288f7 into develop Oct 22, 2018
@cyattilakiss cyattilakiss deleted the fix-unit-tests-local-standalone branch October 22, 2018 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants