public function GroupTypeManagerTest::providerTestIsGroup in Organic groups 8
Data provider for testIsGroup.
Return value
array array with the entity type ID, bundle ID and boolean indicating the expected result.
File
- tests/
src/ Unit/ GroupTypeManagerTest.php, line 181
Class
- GroupTypeManagerTest
- Tests the group manager.
Namespace
Drupal\Tests\og\UnitCode
public function providerTestIsGroup() {
return [
[
'test_entity',
'a',
TRUE,
],
[
'test_entity',
'b',
TRUE,
],
[
'test_entity',
'c',
FALSE,
],
[
'test_entity_non_existent',
'a',
FALSE,
],
[
'test_entity_non_existent',
'c',
FALSE,
],
];
}