X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fdb%2FLBFactoryTest.php;h=f7007e72e3c4b04c2a403804f5eee1735f72caea;hb=40ce67065f56227e54dd46120d71b56df08ef922;hp=106a13bc773a6e9bb2c139804eea74658602a2c2;hpb=1bd43b1bffffc3720e1ef743d802e88fdf849b0f;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/db/LBFactoryTest.php b/tests/phpunit/includes/db/LBFactoryTest.php index 106a13bc77..f7007e72e3 100644 --- a/tests/phpunit/includes/db/LBFactoryTest.php +++ b/tests/phpunit/includes/db/LBFactoryTest.php @@ -356,11 +356,11 @@ class LBFactoryTest extends MediaWikiTestCase { $mockDB2->expects( $this->exactly( 1 ) )->method( 'lastDoneWrites' ); // Nothing to wait for on first HTTP request start - $cp->initLB( $lb1 ); - $cp->initLB( $lb2 ); + $cp->applySessionReplicationPosition( $lb1 ); + $cp->applySessionReplicationPosition( $lb2 ); // Record positions in stash on first HTTP request end - $cp->shutdownLB( $lb1 ); - $cp->shutdownLB( $lb2 ); + $cp->storeSessionReplicationPosition( $lb1 ); + $cp->storeSessionReplicationPosition( $lb2 ); $cpIndex = null; $cp->shutdown( null, 'sync', $cpIndex ); @@ -395,11 +395,11 @@ class LBFactoryTest extends MediaWikiTestCase { ); // Wait for last positions to be reached on second HTTP request start - $cp->initLB( $lb1 ); - $cp->initLB( $lb2 ); + $cp->applySessionReplicationPosition( $lb1 ); + $cp->applySessionReplicationPosition( $lb2 ); // Shutdown (nothing to record) - $cp->shutdownLB( $lb1 ); - $cp->shutdownLB( $lb2 ); + $cp->storeSessionReplicationPosition( $lb1 ); + $cp->storeSessionReplicationPosition( $lb2 ); $cpIndex = null; $cp->shutdown( null, 'sync', $cpIndex );