1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 03:37:47 +00:00

Fix autotest compilation

This commit is contained in:
Joshua Goins 2025-03-17 19:45:59 -04:00
parent 225a42ada1
commit a858f8033e
2 changed files with 2 additions and 16 deletions

View file

@ -36,14 +36,6 @@ private Q_SLOTS:
QVERIFY(!accountManager.canDelete(nullptr));
}
void testAccountManagement_data()
{
QTest::addColumn<bool>("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<int>(Account::GameLicense::WindowsStandalone), true);
}
accountManager.createSquareEnixAccount(QStringLiteral("foo"), static_cast<int>(Account::GameLicense::WindowsStandalone), true);
QCOMPARE(accountsChangedSpy.count(), 1);
QCOMPARE(accountAddedSpy.count(), 1);

View file

@ -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);