diff --git a/autotests/accountmanagertest.cpp b/autotests/accountmanagertest.cpp index 8ea3818..72c43c3 100644 --- a/autotests/accountmanagertest.cpp +++ b/autotests/accountmanagertest.cpp @@ -36,14 +36,6 @@ private Q_SLOTS: QVERIFY(!accountManager.canDelete(nullptr)); } - void testAccountManagement_data() - { - QTest::addColumn("isSapphire"); - - QTest::addRow("se") << false; - QTest::addRow("sapphire") << true; - } - void testAccountManagement() { AccountManager accountManager; @@ -61,13 +53,7 @@ private Q_SLOTS: QCOMPARE(accountAddedSpy.count(), 0); QVERIFY(!accountManager.hasAnyAccounts()); - QFETCH(bool, isSapphire); - - if (isSapphire) { - accountManager.createSapphireAccount(QStringLiteral("foo.com"), QStringLiteral("foo")); - } else { - accountManager.createSquareEnixAccount(QStringLiteral("foo"), static_cast(Account::GameLicense::WindowsStandalone), true); - } + accountManager.createSquareEnixAccount(QStringLiteral("foo"), static_cast(Account::GameLicense::WindowsStandalone), true); QCOMPARE(accountsChangedSpy.count(), 1); QCOMPARE(accountAddedSpy.count(), 1); diff --git a/autotests/profilemanagertest.cpp b/autotests/profilemanagertest.cpp index 044f241..84b1eb6 100644 --- a/autotests/profilemanagertest.cpp +++ b/autotests/profilemanagertest.cpp @@ -55,7 +55,7 @@ private Q_SLOTS: QCOMPARE(profileManager.numProfiles(), 2); QVERIFY(profileManager.canDelete(profileManager.getProfile(1))); - profileManager.deleteProfile(profileManager.getProfile(1)); + profileManager.deleteProfile(profileManager.getProfile(1), false); QCOMPARE(profileManager.rowCount({}), 1); QCOMPARE(profileManager.numProfiles(), 1);