diff options
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r-- | tests/testpreferences.cpp | 20 |
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) |