Commit 53421f5f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make sure that we export correct resource

parent 6f12d8f8
......@@ -69,6 +69,7 @@ void ExportNotesJobInterfaceTestImpl::exportResourceToArchive(const QString &arc
//TODO implement it
qDebug() << " void ExportNotesJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)" << archivePath << " url " << url << " identifier " << identifier;
//TODO implement it
QVERIFY(identifier.startsWith(QLatin1String("akonadi_akonotes_resource_")));
slotNoteJobTerminated();
}
......@@ -131,6 +132,9 @@ void ExportNotesJobInterfaceTest::exportNoteConfigAndResource()
lstInfo << info;
info.identifier = QStringLiteral("akonadi_akonotes_resource_2");
lstInfo << info;
//Add extra resource.
info.identifier = QStringLiteral("akonadi_kontact_resource_2");
lstInfo << info;
ExportNotesJobInterfaceTestImpl *exportNote = new ExportNotesJobInterfaceTestImpl(this, {Utils::StoredType::Config|Utils::StoredType::Resources}, file->archiveStorage(), 1);
exportNote->setListOfResource(lstInfo);
......
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