-
Notifications
You must be signed in to change notification settings - Fork 17
Added 'includeSystem' parameter to loadAllGroups and related methods #683
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
base: 4.6
Are you sure you want to change the base?
Conversation
67cbdaa to
9356871
Compare
|
|
||
| try { | ||
| $defaultGroupsIterable = $contentTypeService->loadContentTypeGroups(); | ||
| $defaultGroups = is_array($defaultGroupsIterable) ? $defaultGroupsIterable : iterator_to_array($defaultGroupsIterable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR our polyfill iterator_to_array should be able to handle that for you.
| /** | ||
| * Test that system ContentTypeGroups are returned only when explicitly requested. | ||
| * | ||
| * @covers \Ibexa\Contracts\Core\Repository\ContentTypeService::loadContentTypeGroups() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't add @covers annotation to specific methods. We add it only for a class the top of a test case class. It makes coverage report somehow incomplete AFAIR.
| ->with($this->equalTo(false)) | ||
| ->will($this->returnValue([])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was legacy style.
Rather:
| ->with($this->equalTo(false)) | |
| ->will($this->returnValue([])); | |
| ->with(false) | |
| ->willReturnValue([]); |
|



Related PRs:
Description:
is_systemfilter when includeSystem=true; cache handler now maintains separate keys for lists with/without system groups and invalidates both on create/update/delete.For QA:
Documentation: