void TestNetctl::test_isProfileEnabled() { Netctl *netctl = createNetctlObj(); QList<QVariant> args; args.append(QString("netctlgui-test-dummy")); QVERIFY(!netctl->isProfileEnabled(QString("netctlgui-test-dummy"))); if (helper) QVERIFY(!sendDBusRequest(QString("/netctl"), QString("isProfileEnabled"), args)[0].toBool()); netctl->enableProfile(QString("netctlgui-test-dummy")); QVERIFY(netctl->isProfileEnabled(QString("netctlgui-test-dummy"))); if (helper) QVERIFY(sendDBusRequest(QString("/netctl"), QString("isProfileEnabled"), args)[0].toBool()); netctl->enableProfile(QString("netctlgui-test-dummy")); delete netctl; }