public function EntityPrintAccessTest::testInvalidRouteParameters in Entity Print 8.2
Test invalid route parameters.
@covers ::checkAccess @dataProvider invalidRouteParametersDataProvider
File
- tests/
src/ Kernel/ EntityPrintAccessTest.php, line 102
Class
- EntityPrintAccessTest
- @coversDefaultClass \Drupal\entity_print\Controller\EntityPrintController @group entity_print
Namespace
Drupal\Tests\entity_print\KernelCode
public function testInvalidRouteParameters($entity_type, $entity_id, $export_type) {
$entity_id = $entity_id ?: $this
->createNode()
->id();
$account = $this
->createUser([
'bypass entity print access',
'access content',
]);
$this
->assertSame(FALSE, $this
->checkAccess($account, $entity_type, $entity_id, $export_type));
}