-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexing Providers: Unit Tests #15601
Comments
How about the same for Elasticsearch? |
It looks like we can't test the Created function alone await contentManager.CreateAsync(firstContent);
var contentFromDb = await contentManager.GetAsync(firstContent.ContentItemId);
Assert.NotNull(contentFromDb); |
Why? |
You can try this PR~~ https://github.com/OrchardCMS/OrchardCore/pull/13721/files#r1587500147 Comment part of the code, cannot pass |
We have to create content like this await contentManager.UpdateValidateAndCreateAsync(firstContent, VersionOptions.Draft);
await contentManager.PublishAsync(firstContent);
var contentFromDb = await contentManager.GetAsync(firstContent.ContentItemId);
Assert.NotNull(contentFromDb); |
I will have a look if I have a time |
This is a unit test, right? no database interaction |
Indeed in unit testing, |
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
The Lucene unit tests are not covering all use cases.
We are missing unit tests for the LuceneIndexingContentHandler and all the events that are possible.
The "index latest" option of a Lucene index needs also to be unit tested against all these events.
The text was updated successfully, but these errors were encountered: