projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c83562
)
LegacyRestTest - No need to test `extern/rest.php` on `Standalone`
author
Tim Otten
<totten@civicrm.org>
Sat, 2 Dec 2023 12:45:18 +0000
(12:45 +0000)
committer
Tim Otten
<totten@civicrm.org>
Sat, 2 Dec 2023 12:45:18 +0000
(12:45 +0000)
tests/phpunit/E2E/Extern/LegacyRestTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/E2E/Extern/LegacyRestTest.php
b/tests/phpunit/E2E/Extern/LegacyRestTest.php
index 26966d426aad05a68b9a338d4654031a5d462f3d..b967c96ac7111ad47a5bda920bdbd513400692b9 100644
(file)
--- a/
tests/phpunit/E2E/Extern/LegacyRestTest.php
+++ b/
tests/phpunit/E2E/Extern/LegacyRestTest.php
@@
-16,9
+16,11
@@
*/
class E2E_Extern_LegacyRestTest extends E2E_Extern_BaseRestTest {
+ protected $LEGACY_EXTERN_SUPPORTED = ['Drupal', 'Backdrop', 'Joomla', 'WordPress'];
+
protected function setUp(): void {
- if (
CIVICRM_UF === 'Drupal8'
) {
- $this->markTestSkipped('Legacy extern/rest.php
does not apply to Drupal 8+'
);
+ if (
!in_array(CIVICRM_UF, $this->LEGACY_EXTERN_SUPPORTED)
) {
+ $this->markTestSkipped('Legacy extern/rest.php
is not supported by ' . CIVICRM_UF
);
}
parent::setUp();
}