Skip to content

Commit

Permalink
Do not run SMW test when SMW is not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Nov 23, 2018
1 parent 9577ff7 commit f81d25a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/System/SemanticMW/MapQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f81d25a

Please sign in to comment.