public function DefaultRoleEventTest::testOffsetGet in Organic groups 8
Tests "testOffsetGet".
@covers ::offsetGet
@dataProvider defaultRoleProvider
Parameters
array $roles: An array of test default roles.
File
- tests/
src/ Unit/ DefaultRoleEventTest.php, line 220
Class
- DefaultRoleEventTest
- Tests default role events.
Namespace
Drupal\Tests\og\UnitCode
public function testOffsetGet(array $roles) {
$this
->expectOgRoleCreation($roles);
$this->defaultRoleEvent
->setRoles($roles);
foreach ($roles as $name => $role) {
$this
->assertRoleEquals($role, $this->defaultRoleEvent[$name]);
}
}