summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefFacebook.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-28 17:21:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-30 07:43:22 -0700
commit600da8b9ff4946d6500e2327dc8f7e361a3616cc (patch)
tree0a688b20a7941c7c61eb78388d41b85f4b1d1c0e /tests/testqPrefFacebook.cpp
parent311b2672da5bda0efbdda70bfe33ccc088ba5c8d (diff)
downloadsubsurface-600da8b9ff4946d6500e2327dc8f7e361a3616cc.tar.gz
tests: correct test_multiple in all qPref classes
test_multiple did not test correctly, correct. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testqPrefFacebook.cpp')
-rw-r--r--tests/testqPrefFacebook.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/testqPrefFacebook.cpp b/tests/testqPrefFacebook.cpp
index 815896cd1..ef39d704c 100644
--- a/tests/testqPrefFacebook.cpp
+++ b/tests/testqPrefFacebook.cpp
@@ -48,13 +48,16 @@ void TestQPrefFacebook::test_multiple()
{
// test multiple instances have the same information
- prefs.facebook.access_token = copy_qstring("test 1");
auto tst_direct = new qPrefFacebook;
+ prefs.facebook.access_token = copy_qstring("test 1");
- prefs.facebook.access_token = copy_qstring("test 2");
auto tst = qPrefFacebook::instance();
+ prefs.facebook.album_id = copy_qstring("test 2");
QCOMPARE(tst->access_token(), tst_direct->access_token());
+ QCOMPARE(tst->access_token(), QString("test 1"));
+ QCOMPARE(tst->album_id(), tst_direct->album_id());
+ QCOMPARE(tst->album_id(), QString("test 2"));
}
#define TEST(METHOD, VALUE) \