| 147 | ////////////////////// Fixture /////////////////////////////////////////////// |
| 148 | |
| 149 | void TestProjectController::initTestCase() |
| 150 | { |
| 151 | AutoTestShell::init({{}}); |
| 152 | auto* testCore = new TestCore; |
| 153 | testCore->setPluginController( new FakePluginController(testCore) ); |
| 154 | testCore->initialize(); |
| 155 | qRegisterMetaType<KDevelop::IProject*>(); |
| 156 | m_core = Core::self(); |
| 157 | m_scratchDir = QDir(QDir::tempPath()); |
| 158 | m_scratchDir.mkdir(QStringLiteral("prjctrltest")); |
| 159 | m_scratchDir.cd(QStringLiteral("prjctrltest")); |
| 160 | |
| 161 | QSignalSpy projectControllerInitializedSpy(m_core->projectControllerInternal(), |
| 162 | &ProjectController::initialized); |
| 163 | QVERIFY(projectControllerInitializedSpy.wait(100)); |
| 164 | } |
| 165 | |
| 166 | void TestProjectController::cleanupTestCase() |
| 167 | { |
nothing calls this directly
no test coverage detected