Closed (cannot reproduce)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Tests
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2015 at 13:27 UTC
Updated:
9 Oct 2015 at 17:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joseph.olstadaccording to the test results there's a problem on the permissions.
https://qa.drupal.org/pifr/test/1171523
I'm working on a similar HEAD broken case for webform_internationalization and came accross a possible solution to permission issues.
Apparently the permission cache might need to be reset after (OR in this case, BEFORE) each call to drupalCreateUser
see possible solution here: https://api.drupal.org/comment/28739#comment-28739
there could be other problems as well with the simple tests, however I'm focussing on the permissions error:
Line 89 search_api.testThe test bot says: Invalid permission administer search_api.Perhaps we might try calling
right before line 89
again, see this comment "reset permission cache"
Comment #3
joseph.olstadI expect this to fail, but will use the results of the failure to create a new patch.
Comment #5
joseph.olstadshould be checkPermissions , not
checkPermissiontry again
Comment #7
joseph.olstadExcellent, that was helpful, now here for the real patch that will fix the issue:
Comment #8
joseph.olstadLets get this fix in. Its blocking testing of other real issues.
Comment #9
drunken monkeyWeird stuff, thanks for reporting and posting a patch!
However, according to the module's "Automated testing" tab the tests are currently passing, yesterday was the latest run. So maybe this was fixed in the meantime?
Posting a no-op patch for testing.
Comment #10
drunken monkeyComment #11
joseph.olstadok, looks like the issue is no longer a problem.