public function OgMembershipTest::saveRoleWithWrongGroupTypeProvider in Organic groups 8
Data provider for testSaveRoleWithWrongGroupType().
Return value
array An array of test data, each item an array consisting of two items: 1. The entity type ID of the role to add to the membership. 2. The bundle ID of the role to add to the membership.
File
- tests/
src/ Kernel/ Entity/ OgMembershipTest.php, line 357
Class
- OgMembershipTest
- Tests the OgMembership entity.
Namespace
Drupal\Tests\og\Kernel\EntityCode
public function saveRoleWithWrongGroupTypeProvider() {
return [
// Try saving a membership containing a role with the wrong entity type.
[
'user',
'entity_test',
],
// Try saving a membership containing a role with the wrong bundle.
[
'entity_test',
'some_other_bundle',
],
];
}