X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2Frdbms%2Fdatabase%2FDatabaseMysqlBaseTest.php;h=6fff68feb94d7e1fad8106d3da9bc211972cc412;hb=b450bf0bd6551ec8f6a7c054d6e66b29cb71e43d;hp=4c92545128940501a0330e12180e1344e31d38ad;hpb=d98de9926d033b9eaa30306379dc1815ee27b42f;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/rdbms/database/DatabaseMysqlBaseTest.php b/tests/phpunit/includes/libs/rdbms/database/DatabaseMysqlBaseTest.php index 4c92545128..6fff68feb9 100644 --- a/tests/phpunit/includes/libs/rdbms/database/DatabaseMysqlBaseTest.php +++ b/tests/phpunit/includes/libs/rdbms/database/DatabaseMysqlBaseTest.php @@ -316,8 +316,8 @@ class DatabaseMysqlBaseTest extends PHPUnit\Framework\TestCase { * @dataProvider provideCommonDomainGTIDs * @covers Wikimedia\Rdbms\MySQLMasterPos */ - public function testCommonGtidDomains( MySQLMasterPos $pos, MySQLMasterPos $ref, $gtids ) { - $this->assertEquals( $gtids, MySQLMasterPos::getCommonDomainGTIDs( $pos, $ref ) ); + public function testGetRelevantActiveGTIDs( MySQLMasterPos $pos, MySQLMasterPos $ref, $gtids ) { + $this->assertEquals( $gtids, MySQLMasterPos::getRelevantActiveGTIDs( $pos, $ref ) ); } public static function provideCommonDomainGTIDs() { @@ -327,6 +327,12 @@ class DatabaseMysqlBaseTest extends PHPUnit\Framework\TestCase { new MySQLMasterPos( '255-11-1000', 1 ), [ '255-13-99' ] ], + [ + ( new MySQLMasterPos( '255-13-99,256-12-50,257-14-50', 1 ) ) + ->setActiveDomain( 257 ), + new MySQLMasterPos( '255-11-1000,257-14-30', 1 ), + [ '257-14-50' ] + ], [ new MySQLMasterPos( '2E11FA47-71CA-11E1-9E33-C80AA9429562:1-5,' .