public function OgRoleTest::testIsAdmin in Organic groups 8
Tests getting and setting the admin role through the inherited methods.
@covers ::isAdmin @covers ::setIsAdmin
@dataProvider booleanProvider
Parameters
bool $value: A boolean value whether or not the admin role will be set.
File
- tests/
src/ Unit/ OgRoleTest.php, line 29
Class
- OgRoleTest
- Unit tests for the OgRole config entity.
Namespace
Drupal\Tests\og\UnitCode
public function testIsAdmin($value) {
$role = new OgRole([]);
$role
->setIsAdmin($value);
$this
->assertEquals($value, $role
->isAdmin());
}