Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2468e848 authored by Laurent Montel's avatar Laurent Montel 😁

Fix autotest

parent d97cd45b
......@@ -36,7 +36,6 @@ void AntiSpamPluginInterfaceTest::shouldHaveDefaultValue()
{
AntiSpamPluginInterface interface;
QVERIFY(!interface.parentWidget());
QCOMPARE(interface.actionTypes().count(), 1);
QVERIFY(!interface.actionTypes().at(0).action());
}
......@@ -44,6 +43,7 @@ void AntiSpamPluginInterfaceTest::shouldCreateAction()
{
AntiSpamPluginInterface interface;
interface.createAction(new KActionCollection(this));
QCOMPARE(interface.actionTypes().count(), 1);
QVERIFY(interface.actionTypes().at(0).action());
}
......
......@@ -36,14 +36,14 @@ void AntiVirusPluginInterfaceTest::shouldHaveDefaultValue()
{
AntiVirusPluginInterface interface;
QVERIFY(!interface.parentWidget());
QCOMPARE(interface.actionTypes().count(), 1);
QVERIFY(!interface.actionTypes().at(0).action());
QCOMPARE(interface.actionTypes().count(), 0);
}
void AntiVirusPluginInterfaceTest::shouldCreateAction()
{
AntiVirusPluginInterface interface;
interface.createAction(new KActionCollection(this));
QCOMPARE(interface.actionTypes().count(), 1);
QVERIFY(interface.actionTypes().at(0).action());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment