From e80dccf290e97c58b8c5a56509177357a18f3b33 Mon Sep 17 00:00:00 2001 From: Robert Vogel <1201528+osnard@users.noreply.github.com> Date: Fri, 6 Sep 2024 13:59:40 +0200 Subject: [PATCH] Replace DB_MASTER with DB_PRIMARY (#783) DB_MASTER was deprecated in MediaWiki 1.36 and removed in MediaWiki 1.43 Co-authored-by: Robert Vogel --- 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 ) ) ); }