store = ApplicationFactory::getInstance()->getStore(); if ( !$this->store instanceof \SMW\Elastic\ElasticStore ) { $this->markTestSkipped( "Skipping test because it requires a `ElasticStore` instance." ); } $utilityFactory = TestEnvironment::getUtilityFactory(); $this->runnerFactory = $utilityFactory->newRunnerFactory(); $this->spyMessageReporter = $utilityFactory->newSpyMessageReporter(); } protected function tearDown(): void { parent::tearDown(); } public function testRun() { $maintenanceRunner = $this->runnerFactory->newMaintenanceRunner( '\SMW\Maintenance\rebuildElasticIndex' ); $maintenanceRunner->setMessageReporter( $this->spyMessageReporter ); $maintenanceRunner->setQuiet(); $this->assertTrue( $maintenanceRunner->run() ); } }