Skip to content
Permalink
Browse files

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

  • Loading branch information
dakcarto authored and elpaso committed Oct 27, 2017
1 parent bc7bbd9 commit b9c2c5cb6c4e46b80ea2b5154585ac86f601c48f
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 b9c2c5c

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