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

Civi\API\ExternalBatch - Verify that $_ENV is working #9595

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

totten
Copy link
Member

@totten totten commented Dec 29, 2016

This aims to improve error messaging in the situation where a Debian/Ubuntu
user runs api_v3_JobProcessMailingTest (and, theoretically, in any
situation where ExternalBatch runs without the required $_ENV).

For more background, see symfony/symfony#18796

This aims to improve error messaging in the situation where a Debian/Ubuntu
user runs `api_v3_JobProcessMailingTest` (and, theoretically, in any
situation where `ExternalBatch` runs without the required `$_ENV`).

For more background, see symfony/symfony#18796
@colemanw colemanw merged commit 999b8fd into civicrm:master Jan 11, 2017
@totten totten deleted the master-extbatch-env branch February 8, 2017 21:10
totten added a commit to totten/civicrm-core that referenced this pull request Mar 13, 2017
The recent revision civicrm#9595 updated `ExternalBatch` to produce a more
informative error message.  However, in the test environment used by
`flexmailer`, there was exactly 1 value in `$_ENV` (even if
`variables_order` was misconfigured).

This should make the test a bit harder to trip-up by affirmatively checking
for the most common environment variable.

Review note: In the known universe, the only direct references to
`ExternalBatch` are in `CiviUnitTestCase`, so this shouldn't impact any
runtime logic.
monishdeb pushed a commit to monishdeb/civicrm-core that referenced this pull request May 2, 2017
The recent revision civicrm#9595 updated `ExternalBatch` to produce a more
informative error message.  However, in the test environment used by
`flexmailer`, there was exactly 1 value in `$_ENV` (even if
`variables_order` was misconfigured).

This should make the test a bit harder to trip-up by affirmatively checking
for the most common environment variable.

Review note: In the known universe, the only direct references to
`ExternalBatch` are in `CiviUnitTestCase`, so this shouldn't impact any
runtime logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants