Changeset View
Changeset View
Standalone View
Standalone View
tests/units/akonadi/akonadinotequeriestest.cpp
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Line(s) | 42 | private slots: | |||
---|---|---|---|---|---|
199 | void shouldLookInAllSelectedCollectionsForInboxNotes() | 199 | void shouldLookInAllSelectedCollectionsForInboxNotes() | ||
200 | { | 200 | { | ||
201 | // GIVEN | 201 | // GIVEN | ||
202 | AkonadiFakeData data; | 202 | AkonadiFakeData data; | ||
203 | 203 | | |||
204 | // Three top level collections | 204 | // Three top level collections | ||
205 | data.createCollection(GenCollection().withId(42).withRootAsParent().withNoteContent()); | 205 | data.createCollection(GenCollection().withId(42).withRootAsParent().withNoteContent()); | ||
206 | data.createCollection(GenCollection().withId(43).withRootAsParent().withNoteContent()); | 206 | data.createCollection(GenCollection().withId(43).withRootAsParent().withNoteContent()); | ||
207 | data.createCollection(GenCollection().withId(44).withRootAsParent().withNoteContent().enabled(false)); | 207 | data.createCollection(GenCollection().withId(44).withRootAsParent().withNoteContent().selected(false)); | ||
208 | 208 | | |||
209 | // One note in the first collection | 209 | // One note in the first collection | ||
210 | data.createItem(GenNote().withId(42).withParent(42).withTitle(QStringLiteral("42"))); | 210 | data.createItem(GenNote().withId(42).withParent(42).withTitle(QStringLiteral("42"))); | ||
211 | 211 | | |||
212 | // Two notes in the second collection | 212 | // Two notes in the second collection | ||
213 | data.createItem(GenNote().withId(43).withParent(43).withTitle(QStringLiteral("43"))); | 213 | data.createItem(GenNote().withId(43).withParent(43).withTitle(QStringLiteral("43"))); | ||
214 | data.createItem(GenNote().withId(44).withParent(43).withTitle(QStringLiteral("44"))); | 214 | data.createItem(GenNote().withId(44).withParent(43).withTitle(QStringLiteral("44"))); | ||
215 | 215 | | |||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |