Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Tests
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
1 Nov 2016 at 10:52 UTC
Updated:
31 Dec 2016 at 21:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
felribeiro commentedComment #3
borisson_This tests only tests if the processor is enabled, but not the actual behavior, not sure if want to test that as well.
Comment #4
drunken monkeyThanks a lot for the patch, good start!
As Joris says, though, this should also test filling out the configuration form with
editSettingsForm(). (See, e.g.,checkStopWordsIntegration().)Also, the patch should remove the
@todoabout this issue from the top of the file.Comment #5
cebasqueira commentedComment #6
cebasqueira commentedComment #7
dermarioI will have a look at it the upcoming week.
Comment #8
dermarioThis is a manual reroll of #2 as the test class was moved to Functional tests meanwhile. I also fixed the incorrect namespace. After doing so, i was able to run these tests on my local. Lets see what the testbot says. If the test is green, i would like to test if the role filter does what it is supposed to do.
Comment #9
dermarioOk i did not check if the role filter actually filters users by roles, because no check* Method does that in
ProcessorIntegrationTest. Maybe that should be handled in a different way?As suggested in #4 by @drunken monkey the configuration form is filled out and one
@todowas removed.Comment #10
borisson_Looks good, thanks @dermario!
Comment #11
drunken monkeyRe-roll.
Testing of the actual functionality is already done in
RoleFilterTest, so that's covered. In the integration test, we really just want to make sure things do not go BOOM in the UI for some reason.Comment #13
drunken monkeySorry, my bad. Got ahead of myself and had #2656052: Remove the "plugin_id"/"settings" sub-level of index plugin settings already committed locally. (Would be great if you could take a look at that, Joris!)
The patch in #9 is already great – thanks a lot!
Committed.
Thanks again, everyone!