Update recently-added PathUrlTest to be more representative
authorTim Otten <totten@civicrm.org>
Fri, 21 Feb 2020 08:34:40 +0000 (00:34 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 21 Feb 2020 08:38:41 +0000 (00:38 -0800)
commit2fd826db63897ea5f2789f91d687c8b03bc152ed
tree25775059ca5b4c13850e361779b65edf5977a69a
parent8221410902daeb3eebdd1a316c4507049319b888
Update recently-added PathUrlTest to be more representative

Before
------

The test generates the URL for an example page (`civicrm/mailing/subscribe`)
by calling `url()`. It does not explicitly set the `url(...$frontend...)` option,
so it defaults to `FALSE`.

By contrast, the other places which make URLs for `civicrm/mailing/subscribe`
(eg `CRM/Mailing/BAO/Mailing.php` and `CRM/Utils/Token.php`) do set `$frontend` to `TRUE`.

After
-----

The test behaves the same way as other code.
tests/phpunit/E2E/Core/PathUrlTest.php