public function GroupCheckTest::permissionsProvider in Organic groups 8
Provides test data to test permissions.
Return value
array Array with the permission names, and the expected access result as boolean.
File
- tests/
src/ Unit/ GroupCheckTest.php, line 278
Class
- GroupCheckTest
- Tests the group check access.
Namespace
Drupal\Tests\og\UnitCode
public function permissionsProvider() {
return [
[
'foo',
FALSE,
],
[
'foo',
TRUE,
],
[
'foo|bar',
FALSE,
],
[
'foo|bar',
TRUE,
],
];
}