SS 4.0 - Skip Subsite tests if module is not installed

This commit is contained in:
Brett Tasker 2017-04-22 21:36:40 +12:00
parent 43dd2ba398
commit 168b6745b4

View File

@ -26,6 +26,7 @@ class SolrIndexSubsitesTest extends SapphireTest {
// Prevent parent::setUp() crashing on db build
if (!class_exists('Subsite')) {
$this->skipTest = true;
$this->markTestSkipped("These tests need the Subsite module installed to run");
}
parent::setUp();