49 lines
866 B
PHP
49 lines
866 B
PHP
<?php
|
|
|
|
namespace SMW\Tests\Integration\Maintenance;
|
|
|
|
use SMW\Tests\SMWIntegrationTestCase;
|
|
use SMW\Tests\TestEnvironment;
|
|
|
|
/**
|
|
* @group semantic-mediawiki
|
|
* @group Database
|
|
* @group medium
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
* @since 3.2
|
|
*
|
|
* @author mwjames
|
|
*/
|
|
class RebuildConceptCacheTest extends SMWIntegrationTestCase {
|
|
|
|
private $runnerFactory;
|
|
|
|
protected function setUp(): void {
|
|
parent::setUp();
|
|
|
|
$this->runnerFactory = TestEnvironment::getUtilityFactory()->newRunnerFactory();
|
|
}
|
|
|
|
protected function tearDown(): void {
|
|
parent::tearDown();
|
|
}
|
|
|
|
public function testRun() {
|
|
$maintenanceRunner = $this->runnerFactory->newMaintenanceRunner(
|
|
'\SMW\Maintenance\rebuildConceptCache'
|
|
);
|
|
|
|
$maintenanceRunner->setQuiet();
|
|
|
|
$maintenanceRunner->setOptions(
|
|
[ 'create' => true ]
|
|
);
|
|
|
|
$this->assertTrue(
|
|
$maintenanceRunner->run()
|
|
);
|
|
}
|
|
|
|
}
|