File indexing completed on 2025-01-05 04:49:45

0001 /*
0002    SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "viewerpluginmanagertest.h"
0008 #include <MessageViewer/ViewerPluginManager>
0009 #include <QTest>
0010 
0011 ViewerPluginManagerTest::ViewerPluginManagerTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 ViewerPluginManagerTest::~ViewerPluginManagerTest() = default;
0017 
0018 void ViewerPluginManagerTest::shouldHaveDefaultValue()
0019 {
0020     auto manager = new MessageViewer::ViewerPluginManager(this);
0021     manager->setPluginName(QStringLiteral("messageviewer"));
0022     manager->setPluginDirectory(QStringLiteral("pim6/messageviewer/viewerplugin"));
0023     QVERIFY(manager->initializePluginList());
0024     QVERIFY(!manager->pluginsList().isEmpty());
0025 }
0026 
0027 QTEST_MAIN(ViewerPluginManagerTest)
0028 
0029 #include "moc_viewerpluginmanagertest.cpp"