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

Fixed SitesCommand#getSiteCreateOptions #1278

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

TeslaDethray
Copy link
Contributor

@TeslaDethray TeslaDethray commented Sep 29, 2016

I can't find the Jira issue for this. This was not caught by tests because you only enter this function if in interactive mode.

@TeslaDethray TeslaDethray self-assigned this Sep 29, 2016
@TeslaDethray TeslaDethray force-pushed the fix/sitescommand_getsitecreateoptions branch 3 times, most recently from 389262a to 09cd3a0 Compare September 29, 2016 21:39
if (array_key_exists('name', $assoc_args)) {
// Deprecated but kept for backwards compatibility
$options['site_name'] = $assoc_args['name'];
} elseif (array_key_exists('site', $assoc_args)) {
$options['site_name'] = $assoc_args['site'];
} elseif (!is_null(Config::get('site'))) {
$options['site_name'] = Config::get('site');
} elseif (!empty($site = Config::get('site'))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line right here was the culprit. The change in config meant that we now have to check for empty rather than null.

@TeslaDethray TeslaDethray changed the title Fix/sitescommand getsitecreateoptions Fixed SitesCommand#getSiteCreateOptions Sep 29, 2016
@TeslaDethray TeslaDethray force-pushed the fix/sitescommand_getsitecreateoptions branch 2 times, most recently from 2357706 to b112ebc Compare September 29, 2016 22:27
@coveralls
Copy link

Coverage Status

Coverage remained the same at 49.753% when pulling b112ebc on fix/sitescommand_getsitecreateoptions into 80620b8 on master.

@TeslaDethray TeslaDethray force-pushed the fix/sitescommand_getsitecreateoptions branch from b112ebc to 0e8ca1f Compare September 29, 2016 22:33
@coveralls
Copy link

coveralls commented Sep 29, 2016

Coverage Status

Coverage increased (+0.007%) to 23.546% when pulling 0e8ca1f on fix/sitescommand_getsitecreateoptions into 80620b8 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 23.546% when pulling 0e8ca1f on fix/sitescommand_getsitecreateoptions into 80620b8 on master.

1 similar comment
@coveralls
Copy link

coveralls commented Sep 29, 2016

Coverage Status

Coverage increased (+0.007%) to 23.546% when pulling 0e8ca1f on fix/sitescommand_getsitecreateoptions into 80620b8 on master.

Copy link
Contributor

@ajbarry ajbarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants