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

(dev/core#1412) E2E - Add test case for path+URL construction in CLI #15922

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

totten
Copy link
Member

@totten totten commented Nov 21, 2019

Overview

In dev/core#1412, the regression involved CLI processes producing incorrect URLs. This adds some test-coverage.

Before

No test coverage for URLs in CLI environment.

After

There is some test-coverage. It's able to reveal the existence of the bug from 1412. (The test fails on WP without #15919, and it passes on WP with #15919.)

Comments

A lot of path/URL construction is dependent on the environment/site-build. The test does not, on its own, guarantee that all environments work. Rather, it adds a new slice of cheese to the stack.

This slice is moderately generic - in that I've successfully tested it localy on drupal-demo and wp-demo builds. In theory, it should work on other build types (as long as they set variables CIVI_CORE, CMS_ROOT, CMS_URL).

Overview
--------

In dev/core#1412, the regression involved CLI processes producing incorrect URLs.
This adds some test-coverage.

Before
------

No test coverage for URLs in CLI environment.

After
-----

There is some test-coverage. It's able to reveal the existence of the bug from 1412.

Comments
--------

A lot of path/URL construction is dependent on the environment/site-build.
The test does not, on its own, guarantee that all environments work.
Rather, it adds a new slice of cheese to the stack.

This slice is moderately generic - in that I've successfully tested it
localy on `drupal-demo` and `wp-demo` builds.  In theory, it should work on
other build types (as long as they set variables `CIVI_CORE`, `CMS_ROOT`,
`CMS_URL`).
@civibot
Copy link

civibot bot commented Nov 21, 2019

(Standard links)

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.

2 participants