mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-03 12:26:17 +00:00
Tests: Replace "db" with getDb method
Bug: T316841 Change-Id: Ied9f8d3a4d51a5f9eff5561a25e79a9b35ac2704
This commit is contained in:
parent
33fd2ec210
commit
fb55b1eabe
|
@ -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__ )
|
||||
|
|
|
@ -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() ] )
|
||||
|
|
Loading…
Reference in a new issue