public function RngRegistrantRouteTest::testRegistrantDeleteRouteNoAccess in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Tests/RngRegistrantRouteTest.php \Drupal\rng\Tests\RngRegistrantRouteTest::testRegistrantDeleteRouteNoAccess()
- 3.x src/Tests/RngRegistrantRouteTest.php \Drupal\rng\Tests\RngRegistrantRouteTest::testRegistrantDeleteRouteNoAccess()
Test access delete registrant form with no permission.
File
- src/
Tests/ RngRegistrantRouteTest.php, line 197
Class
- RngRegistrantRouteTest
- Tests registrant routes.
Namespace
Drupal\rng\TestsCode
public function testRegistrantDeleteRouteNoAccess() {
$admin = $this
->drupalCreateUser();
$this
->drupalLogin($admin);
$this
->drupalGet(Url::fromRoute('entity.registrant.delete_form', [
'registrant' => $this->registrant
->id(),
]));
$this
->assertResponse(403);
}