command
| 343 | |
| 344 | // command |
| 345 | void TestProjectController::emptyProject() |
| 346 | { |
| 347 | // verify that the project model contains a single top-level folder after loading |
| 348 | // an empty project |
| 349 | |
| 350 | assertEmptyProjectModel(); |
| 351 | |
| 352 | m_projCtrl->openProject(m_projFilePath.toUrl()); |
| 353 | WAIT_FOR_OPEN_SIGNAL; |
| 354 | auto* proj = assertProjectOpened(m_projName); |
| 355 | |
| 356 | FakeFileManager* fileMng = createFileManager(); |
| 357 | Q_ASSERT(fileMng); |
| 358 | |
| 359 | proj->setManagerPlugin(fileMng); |
| 360 | proj->reloadModel(); |
| 361 | QTest::qWait(100); |
| 362 | |
| 363 | ProjectFolderItem* rootFolder; |
| 364 | ASSERT_SINGLE_PROJECT_IN_MODEL(rootFolder); |
| 365 | |
| 366 | // check that the project is empty |
| 367 | QCOMPARE(rootFolder->rowCount(), 0); |
| 368 | QCOMPARE(rootFolder->project()->name(), m_projName); |
| 369 | QCOMPARE(rootFolder->path(), m_projFolder); |
| 370 | } |
| 371 | |
| 372 | // command |
| 373 | void TestProjectController::singleFile() |
nothing calls this directly
no test coverage detected