blob: a75828a1e149f2a0b2c1ce3b2b0b395dd3c9de1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
namespace SMW\Tests\Integration\Maintenance;
use SMW\Tests\MwDBaseUnitTestCase;
use SMW\Tests\TestEnvironment;
/**
* @group semantic-mediawiki
* @group medium
*
* @license GNU GPL v2+
* @since 3.1
*
* @author mwjames
*/
class PopulateHashField extends MwDBaseUnitTestCase {
protected $destroyDatabaseTablesAfterRun = true;
private $runnerFactory;
protected function setUp() {
parent::setUp();
$this->runnerFactory = TestEnvironment::getUtilityFactory()->newRunnerFactory();
}
protected function tearDown() {
parent::tearDown();
}
public function testRun() {
$maintenanceRunner = $this->runnerFactory->newMaintenanceRunner(
'SMW\Maintenance\PopulateHashField'
);
$maintenanceRunner->setQuiet();
$this->assertTrue(
$maintenanceRunner->run()
);
}
}
|