Merge "registration: Only allow one extension to set a specific config setting"
[lhc/web/wiklou.git] / tests / phpunit / includes / deferred / TransactionRoundDefiningUpdateTest.php
1 <?php
2
3 /**
4 * @covers TransactionRoundDefiningUpdate
5 */
6 class TransactionRoundDefiningUpdateTest extends PHPUnit_Framework_TestCase {
7
8 public function testDoUpdate() {
9 $ran = 0;
10 $update = new TransactionRoundDefiningUpdate( function () use ( &$ran ) {
11 $ran++;
12 } );
13 $this->assertSame( 0, $ran );
14 $update->doUpdate();
15 $this->assertSame( 1, $ran );
16 }
17 }