Skip to content

Commit

Permalink
Replace DB_MASTER with DB_PRIMARY (#783)
Browse files Browse the repository at this point in the history
DB_MASTER was deprecated in MediaWiki 1.36 and removed in MediaWiki 1.43

Co-authored-by: Robert Vogel <[email protected]>
  • Loading branch information
osnard and Robert Vogel authored Sep 6, 2024
1 parent 5fd92fb commit e80dccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Integration/Semantic/AreaDescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) )
);
}

Expand All @@ -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 ) )
);
}

Expand Down

0 comments on commit e80dccf

Please sign in to comment.