Replace wfGetDB() in test with $this->getDb()

Not spotted in code search due to wrong case, which PHP forgives.
Whoops.

Bug: T360991
Depends-On: I73e4d3ab3158659b6a3c0a942f6bef10820b4248
Change-Id: I2d1cfd0f05c962f2d62dde911e4b0eed1ca02d83
This commit is contained in:
James D. Forrester 2024-03-26 11:29:26 +00:00 committed by Majavah
parent 9781b4f9a6
commit 30d911b649

View file

@ -68,7 +68,7 @@ class ThreadItemStoreTest extends IntegrationTestCase {
foreach ( $tables as $table => $order ) {
$expected[$table] = static::getJson( "../$dir/$table.json", true );
$res = wfGetDb( DB_REPLICA )->newSelectQueryBuilder()
$res = $this->getDb()->newSelectQueryBuilder()
->from( $table )
->field( '*' )
->caller( __METHOD__ )