Tests: Replace "db" with getDb method

Bug: T316841
Change-Id: Ied9f8d3a4d51a5f9eff5561a25e79a9b35ac2704
This commit is contained in:
Wandji69 2024-06-27 17:59:48 +01:00
parent 33fd2ec210
commit fb55b1eabe
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class OATHAuthModuleRegistryTest extends MediaWikiIntegrationTestCase {
* @covers \MediaWiki\Extension\OATHAuth\OATHAuthModuleRegistry::getModuleIds
*/
public function testGetModuleIds() {
$this->db->newInsertQueryBuilder()
$this->getDb()->newInsertQueryBuilder()
->insertInto( 'oathauth_types' )
->row( [ 'oat_name' => 'first' ] )
->caller( __METHOD__ )

View file

@ -84,7 +84,7 @@ class OATHUserRepositoryTest extends MediaWikiIntegrationTestCase {
);
$this->assertNotEmpty(
$this->db->newSelectQueryBuilder()
$this->getDb()->newSelectQueryBuilder()
->select( '1' )
->from( 'oathauth_devices' )
->where( [ 'oad_user' => $oathUser->getCentralId() ] )