From d6072fc841a9fc1994e54fb5560f8fc8ae4339bc Mon Sep 17 00:00:00 2001 From: Robert Vogel Date: Fri, 6 Sep 2024 13:39:23 +0200 Subject: [PATCH] Replace DB_MASTER with DB_PRIMARY DB_MASTER was deprecated in MediaWiki 1.36 and removed in MediaWiki 1.43 --- tests/Integration/Semantic/AreaDescriptionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Semantic/AreaDescriptionTest.php b/tests/Integration/Semantic/AreaDescriptionTest.php index 88be7d3a1..6be31ed1d 100644 --- a/tests/Integration/Semantic/AreaDescriptionTest.php +++ b/tests/Integration/Semantic/AreaDescriptionTest.php @@ -50,7 +50,7 @@ public function testGetSQLCondition() { $this->assertSame( 'geo_table.lat_field < \'0.089932160591873\' AND geo_table.lat_field > \'-0.089932160591873\' ' . 'AND geo_table.long_field < \'5.0899321605919\' AND geo_table.long_field > \'4.9100678394081\'', - $area->getSQLCondition( 'geo_table', [ 'id_field', 'lat_field', 'long_field' ], wfGetDB( DB_MASTER ) ) + $area->getSQLCondition( 'geo_table', [ 'id_field', 'lat_field', 'long_field' ], wfGetDB( DB_PRIMARY ) ) ); } @@ -62,7 +62,7 @@ public function testWhenComparatorIsNotSupported_getSQLConditionReturnsFalse() { ); $this->assertFalse( - $area->getSQLCondition( 'geo_table', [ 'id_field', 'lat_field', 'long_field' ], wfGetDB( DB_MASTER ) ) + $area->getSQLCondition( 'geo_table', [ 'id_field', 'lat_field', 'long_field' ], wfGetDB( DB_PRIMARY ) ) ); }