summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testpreferences.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index bba580458..2fe863959 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -160,22 +160,22 @@ void TestPreferences::testPreferences()
TEST(pp->po2ThresholdMin(), 4.0);
TEST(pp->po2ThresholdMax(), 5.0);
- auto fb = pref->facebook;
- fb->setAccessToken("rand-access-token");
- fb->setUserId("tomaz-user-id");
- fb->setAlbumId("album-id");
-
- TEST(fb->accessToken(), QStringLiteral("rand-access-token"));
- TEST(fb->userId(), QStringLiteral("tomaz-user-id"));
- TEST(fb->albumId(), QStringLiteral("album-id"));
-
- fb->setAccessToken("rand-access-token-2");
- fb->setUserId("tomaz-user-id-2");
- fb->setAlbumId("album-id-2");
-
- TEST(fb->accessToken(), QStringLiteral("rand-access-token-2"));
- TEST(fb->userId(), QStringLiteral("tomaz-user-id-2"));
- TEST(fb->albumId(), QStringLiteral("album-id-2"));
+ auto fb = qPrefFacebook::instance();
+ fb->set_access_token("rand-access-token");
+ fb->set_user_id("tomaz-user-id");
+ fb->set_album_id("album-id");
+
+ TEST(fb->access_token(),QStringLiteral("rand-access-token"));
+ TEST(fb->user_id(), QStringLiteral("tomaz-user-id"));
+ TEST(fb->album_id(), QStringLiteral("album-id"));
+
+ fb->set_access_token("rand-access-token-2");
+ fb->set_user_id("tomaz-user-id-2");
+ fb->set_album_id("album-id-2");
+
+ TEST(fb->access_token(),QStringLiteral("rand-access-token-2"));
+ TEST(fb->user_id(), QStringLiteral("tomaz-user-id-2"));
+ TEST(fb->album_id(), QStringLiteral("album-id-2"));
auto geo = pref->geocoding;
geo->setFirstTaxonomyCategory(TC_NONE);