File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ void TestQgsAuthOAuth2Method::initTestCase()
66
66
// setPrefixEnviron();
67
67
QgsApplication::init ();
68
68
QgsApplication::initQgis ();
69
- if ( QgsAuthManager::instance ()->isDisabled () )
69
+ if ( QgsApplication::authManager ()->isDisabled () )
70
70
QSKIP ( " Auth system is disabled, skipping test case" , SkipAll );
71
71
72
72
// qDebug() << QgsApplication::showSettings().toUtf8().constData();
@@ -337,7 +337,7 @@ void TestQgsAuthOAuth2Method::testOAuth2ConfigIO()
337
337
QCOMPARE ( baseConfigTxt ( true ), cfgtxt );
338
338
339
339
qDebug () << " Verify writing config to file" ;
340
- QString rndsuffix = QgsAuthManager::instance ()->uniqueConfigId ();
340
+ QString rndsuffix = QgsApplication::authManager ()->uniqueConfigId ();
341
341
QString dirname = QString ( " oauth2_configs_%1" ).arg ( rndsuffix );
342
342
QDir tmpdir = QDir::temp ();
343
343
tmpdir.mkdir ( dirname );
You can’t perform that action at this time.
0 commit comments