X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2Fmaintenance%2FMaintenanceTest.php;h=e21e72696a4ec199744a1ed7114a7213c6832c0b;hb=925fe0df015458a330d320c9f1a0014d32ff8866;hp=cb3d227203933c45f9ca952222fd62f7888155fb;hpb=81518f218a4610db96670e1bedff874c65dfec81;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/maintenance/MaintenanceTest.php b/tests/phpunit/maintenance/MaintenanceTest.php index cb3d227203..e21e72696a 100644 --- a/tests/phpunit/maintenance/MaintenanceTest.php +++ b/tests/phpunit/maintenance/MaintenanceTest.php @@ -52,7 +52,6 @@ class MaintenanceFixup extends Maintenance { * Simulates what Maintenance wants to happen at script's end. */ public function simulateShutdown() { - if ( $this->shutdownSimulated ) { $this->testCase->fail( __METHOD__ . " called more than once" ); } @@ -175,7 +174,6 @@ class MaintenanceTest extends MediaWikiTestCase { * after shutdown simulation. */ private function assertOutputPrePostShutdown( $preShutdownOutput, $expectNLAppending ) { - $this->assertEquals( $preShutdownOutput, $this->getActualOutput(), "Output before shutdown simulation" ); @@ -835,7 +833,7 @@ class MaintenanceTest extends MediaWikiTestCase { * @covers Maintenance::setConfig */ public function testSetConfig() { - $conf = $this->getMock( 'Config' ); + $conf = $this->createMock( 'Config' ); $this->m->setConfig( $conf ); $this->assertSame( $conf, $this->m->getConfig() ); }