Result of a new sniff I25a17fb22b6b669e817317a0f45051ae9c608208 Bug: T274036 Change-Id: I695873737167a75f0d94901fa40383a33984ca55
17 lines
370 B
PHP
17 lines
370 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers TransactionRoundDefiningUpdate
|
|
*/
|
|
class TransactionRoundDefiningUpdateTest extends MediaWikiUnitTestCase {
|
|
|
|
public function testDoUpdate() {
|
|
$ran = 0;
|
|
$update = new TransactionRoundDefiningUpdate( static function () use ( &$ran ) {
|
|
$ran++;
|
|
} );
|
|
$this->assertSame( 0, $ran );
|
|
$update->doUpdate();
|
|
$this->assertSame( 1, $ran );
|
|
}
|
|
}
|