summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/includes/deferred/TransactionRoundDefiningUpdateTest.php
blob: 693897e676d5fce11faf7471c77068cd83ec1c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/**
 * @covers TransactionRoundDefiningUpdate
 */
class TransactionRoundDefiningUpdateTest extends PHPUnit\Framework\TestCase {

	use MediaWikiCoversValidator;

	public function testDoUpdate() {
		$ran = 0;
		$update = new TransactionRoundDefiningUpdate( function () use ( &$ran ) {
			$ran++;
		} );
		$this->assertSame( 0, $ran );
		$update->doUpdate();
		$this->assertSame( 1, $ran );
	}
}