aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testpreferences.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-04 11:25:57 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-09 08:45:02 -0700
commit9341ea6eef9cf8573e6b513370424b514753f8ac (patch)
tree17b1342be7bc5d433aa0c9e85798c7e6715f872d /tests/testpreferences.cpp
parent4ce7a2e30c971f24c9ed8a3eda19195cbf143ac8 (diff)
downloadsubsurface-9341ea6eef9cf8573e6b513370424b514753f8ac.tar.gz
tests: move UpdateManager test from testpreferences
Remove UpdateManager test in testpreferences add the same UpdateManager tests to testqPrefUpdateManager Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r--tests/testpreferences.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index 59f7d064c..aef4c9991 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -262,26 +262,6 @@ void TestPreferences::testPreferences()
TEST(location->timeThreshold(), 30);
TEST(location->distanceThreshold(), 40);
-
- auto update = qPrefUpdateManager::instance();
- QDate date = QDate::currentDate();
-
- update->set_dont_check_for_updates(true);
- update->set_last_version_used("tomaz-1");
- update->set_next_check(date);
-
- TEST(update->dont_check_for_updates(), true);
- TEST(update->last_version_used(), QStringLiteral("tomaz-1"));
- TEST(update->next_check(), date);
-
- date = date.addDays(3);
- update->set_dont_check_for_updates(false);
- update->set_last_version_used("tomaz-2");
- update->set_next_check(date);
-
- TEST(update->dont_check_for_updates(), false);
- TEST(update->last_version_used(), QStringLiteral("tomaz-2"));
- TEST(update->next_check(), date);
}
QTEST_MAIN(TestPreferences)