mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Test the facebook preferences
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c5c82b5d11
commit
4fcf7928f8
1 changed files with 16 additions and 0 deletions
|
@ -231,6 +231,22 @@ void TestPreferences::testPreferences()
|
|||
TEST(pp->pheThreshold(), 5.0);
|
||||
TEST(pp->po2Threshold(), 6.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"));
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestPreferences)
|
||||
|
|
Loading…
Reference in a new issue