(REF) E2E_Extern_*RestTest - Extract `isOldQSupported()`
authorTim Otten <totten@civicrm.org>
Wed, 23 Feb 2022 04:21:00 +0000 (20:21 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 23 Feb 2022 04:58:14 +0000 (20:58 -0800)
commit2c50777fcb9d495c7739f4f3ab5d7d68a38da0ba
treef9d057fee7f3d71515a909e4bbdafb7ad3504b14
parente7cd1619b7a5b7fbf582be308343e7f22bad87d9
(REF) E2E_Extern_*RestTest - Extract `isOldQSupported()`

This patch changes the way a certain carve-out works, but it doesn't change the outcome.

Background: There are two E2E tests:

* `LegacyRestTest` extends `BaseRestTest` and targets `extern/rest.php`.
  It tests `rest.php?entity=ENTITY&action=ACTION`
  as well as `rest.php?q=civicrm/ENTITY/ACTION`.
* `AuthxRestTest` extends `BaseRestTest` and targets `civicrm/ajax/rest`.
  It only tests `civicrm/ajax/rest?entity=ENTITY&action=ACTION`.

The `q` parameter cannot be used realiably with CMS routing
(`q=civicrm/ajax/rest&q=civicrm/ENTITY/ACTION`).  So we skip testing that
combination.

The patch merely changes how the skip works.
tests/phpunit/E2E/Extern/AuthxRestTest.php
tests/phpunit/E2E/Extern/BaseRestTest.php
tests/phpunit/E2E/Extern/LegacyRestTest.php