public function InvoiceOrderAccessCheckTest::testAccessWithoutPermission in Commerce Invoice 8.2
@covers ::access
File
- tests/
src/ Kernel/ InvoiceOrderAccessCheckTest.php, line 41
Class
- InvoiceOrderAccessCheckTest
- Tests the 'access_check.invoice_order' access checker.
Namespace
Drupal\Tests\commerce_invoice\KernelCode
public function testAccessWithoutPermission() {
$access = $this->accessChecker
->access($this
->getRoute(FALSE), $this
->getRouteMatch(), $this
->getAccount(FALSE));
$this
->assertFalse($access
->isAllowed());
}