Skip to content
Permalink
Browse files

[auth] Update OAuth2 plugin test to new QgsApplication::authManager()

  • Loading branch information
dakcarto committed Oct 27, 2017
1 parent 924b3ff commit a60c0bd74b8438db2012f75e62dde06d2705de16
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/auth/testqgsauthoauth2method.cpp
@@ -66,7 +66,7 @@ void TestQgsAuthOAuth2Method::initTestCase()
//setPrefixEnviron();
QgsApplication::init();
QgsApplication::initQgis();
if ( QgsAuthManager::instance()->isDisabled() )
if ( QgsApplication::authManager()->isDisabled() )
QSKIP( "Auth system is disabled, skipping test case", SkipAll );

//qDebug() << QgsApplication::showSettings().toUtf8().constData();
@@ -337,7 +337,7 @@ void TestQgsAuthOAuth2Method::testOAuth2ConfigIO()
QCOMPARE( baseConfigTxt( true ), cfgtxt );

qDebug() << "Verify writing config to file";
QString rndsuffix = QgsAuthManager::instance()->uniqueConfigId();
QString rndsuffix = QgsApplication::authManager()->uniqueConfigId();
QString dirname = QString( "oauth2_configs_%1" ).arg( rndsuffix );
QDir tmpdir = QDir::temp();
tmpdir.mkdir( dirname );

0 comments on commit a60c0bd

Please sign in to comment.
You can’t perform that action at this time.