Commit 404c3faa authored by Laurent Montel's avatar Laurent Montel 😁

Improve unittest

parent 27978d60
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
#include "composerviewbasetest.h" #include "composerviewbasetest.h"
#include "../composer/composerviewbase.h"
#include <qtest_kde.h> #include <qtest_kde.h>
ComposerViewBaseTest::ComposerViewBaseTest(QObject *parent) ComposerViewBaseTest::ComposerViewBaseTest(QObject *parent)
...@@ -29,4 +30,19 @@ ComposerViewBaseTest::~ComposerViewBaseTest() ...@@ -29,4 +30,19 @@ ComposerViewBaseTest::~ComposerViewBaseTest()
} }
void ComposerViewBaseTest::shouldHaveDefaultValue()
{
MessageComposer::ComposerViewBase composerViewBase;
QVERIFY(!composerViewBase.attachmentModel());
QVERIFY(!composerViewBase.attachmentController());
QVERIFY(!composerViewBase.recipientsEditor());
QVERIFY(!composerViewBase.signatureController());
QVERIFY(!composerViewBase.identityCombo());
QVERIFY(!composerViewBase.identityManager());
QVERIFY(!composerViewBase.editor());
QVERIFY(!composerViewBase.transportComboBox());
QVERIFY(!composerViewBase.fccCombo());
QVERIFY(!composerViewBase.dictionary());
}
QTEST_KDEMAIN(ComposerViewBaseTest, NoGUI) QTEST_KDEMAIN(ComposerViewBaseTest, NoGUI)
...@@ -26,7 +26,8 @@ class ComposerViewBaseTest : public QObject ...@@ -26,7 +26,8 @@ class ComposerViewBaseTest : public QObject
public: public:
explicit ComposerViewBaseTest(QObject *parent = 0); explicit ComposerViewBaseTest(QObject *parent = 0);
~ComposerViewBaseTest(); ~ComposerViewBaseTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
}; };
#endif // COMPOSERVIEWBASETEST_H #endif // COMPOSERVIEWBASETEST_H
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