public function LoggerChannelPartTest::testGetGrants in Purge 8.3
@covers ::getGrants
@dataProvider providerTestGetGrants()
File
- tests/
src/ Unit/ Logger/ LoggerChannelPartTest.php, line 62
Class
- LoggerChannelPartTest
- @coversDefaultClass \Drupal\purge\Logger\LoggerChannelPart
Namespace
Drupal\Tests\purge\Unit\LoggerCode
public function testGetGrants(array $grants) : void {
$part = new LoggerChannelPart($this->loggerChannelPurge, 'id', $grants);
$this
->assertEquals(count($grants), count($part
->getGrants()));
$this
->assertEquals($grants, $part
->getGrants());
foreach ($part
->getGrants() as $k => $v) {
$this
->assertTrue(is_int($k));
$this
->assertTrue(is_int($v));
}
}