Fix typo in tests/phpunit/includes/Revision/MainSlotRoleHandlerTest.php
[lhc/web/wiklou.git] / tests / phpunit / includes / deferred / DeferredUpdatesTest.php
index a1e41d9..3662c26 100644 (file)
@@ -358,7 +358,7 @@ class DeferredUpdatesTest extends MediaWikiTestCase {
                $this->assertEquals( [], $calls );
 
                $dbw = wfGetDB( DB_MASTER );
-               $dbw->onTransactionIdle( function () use ( &$calls, $callback2 ) {
+               $dbw->onTransactionCommitOrIdle( function () use ( &$calls, $callback2 ) {
                        DeferredUpdates::addCallableUpdate( $callback2 );
                        $this->assertEquals( [], $calls );
                        $calls[] = 'oti';