(NFC, infra/ops#878) AssetBuilderTest - Relax getUrl() assertion for WP compat
authorTim Otten <totten@civicrm.org>
Wed, 13 Mar 2019 19:00:29 +0000 (12:00 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 14 Mar 2019 22:57:04 +0000 (15:57 -0700)
commitee9ff51753379d10f306afff5239e8be7cb07b0c
tree24d52d9ccd6aaa8a55b8c39b92bb46a8b4be42c5
parentfb617dca34f57e9157a75f9d138f6b2bec906fd8
(NFC, infra/ops#878) AssetBuilderTest - Relax getUrl() assertion for WP compat

The test ensures that AssetBuilder produces plausible URLs when caching is disabled.

Generated URLs look different in the default `drupal-clean` and `wp-demo` configurations, e.g.

* D7 (drupal-clean): `http://dmaster.bknix:8001/civicrm/asset/builder?an=square.js&ap=...`
* WP (wp-demo): `http://wpmaster.bknix:8001/?page=CiviCRM&q=civicrm%2Fasset%2Fbuilder&an=square.js&ap=...

The assertion in `AssetBuilderTest` was coded in a way that fails on working URLs.

Before
------

The test fails on WP.

After
-----

The test passes on WP.
tests/phpunit/E2E/Core/AssetBuilderTest.php