Depends-On: I16691fc8ac063705ba0c2bc63b96c4534ca8660b Bug: T87781 Change-Id: I5e1ab06e3decef6cc6090551d54dc4314ab9314a
17 lines
363 B
PHP
17 lines
363 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers TransactionRoundDefiningUpdate
|
|
*/
|
|
class TransactionRoundDefiningUpdateTest extends MediaWikiUnitTestCase {
|
|
|
|
public function testDoUpdate() {
|
|
$ran = 0;
|
|
$update = new TransactionRoundDefiningUpdate( function () use ( &$ran ) {
|
|
$ran++;
|
|
} );
|
|
$this->assertSame( 0, $ran );
|
|
$update->doUpdate();
|
|
$this->assertSame( 1, $ran );
|
|
}
|
|
}
|