diff --git a/tests/System/SemanticMW/MapQueryTest.php b/tests/System/SemanticMW/MapQueryTest.php index 73c7976d4..a76e5e2c4 100644 --- a/tests/System/SemanticMW/MapQueryTest.php +++ b/tests/System/SemanticMW/MapQueryTest.php @@ -28,6 +28,10 @@ class MapQueryTest extends TestCase { private $contentFetcher; public function setUp() { + if ( !defined( 'SMW_VERSION' ) ) { + $this->markTestSkipped( 'SMW is not available' ); + } + $this->pageCreator = TestFactory::newInstance()->getPageCreator(); $this->contentFetcher = MapsFactory::globalInstance()->getPageContentFetcher(); }