blob: 0036c396de92a30b7a9d73297bbbce7aa80aa039 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
use MediaWiki\Deferred\TransactionRoundDefiningUpdate;
/**
* @covers \MediaWiki\Deferred\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 );
}
}
|