diff --git a/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php b/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php index 6e3959ceda5bce02d79ab3a637849ff24173268a..8ad12f8b8bbda824e92a125876b6d69a599ead5d 100644 --- a/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php +++ b/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php @@ -26,11 +26,20 @@ class SharedSiteIdsTest extends IntegrationTestCase { parent::setUp(); + if (! SharedSiteIds::isSupported()) { + $this->markTestSkipped('Not supported on this platform'); + return; + } + $this->sharedSiteIds = new SharedSiteIds(array(1,2,5,9)); } public function tearDown() { + if (! SharedSiteIds::isSupported()) { + return; + } + $siteIdsToCleanup = new SharedSiteIds(array()); $siteIdsToCleanup->setSiteIdsToArchive(array());