public function UpgradeStatusAccessTest::testDeprecationDashboardAccessUnprivileged in Upgrade Status 8.2
Same name and namespace in other branches
- 8.3 tests/src/Functional/UpgradeStatusAccessTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusAccessTest::testDeprecationDashboardAccessUnprivileged()
- 8 tests/src/Functional/UpgradeStatusAccessTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusAccessTest::testDeprecationDashboardAccessUnprivileged()
Tests access without permission.
File
- tests/
src/ Functional/ UpgradeStatusAccessTest.php, line 30
Class
- UpgradeStatusAccessTest
- Tests the accessibility of the deprecation dashboard.
Namespace
Drupal\Tests\upgrade_status\FunctionalCode
public function testDeprecationDashboardAccessUnprivileged() {
$this
->drupalGet(Url::fromRoute('upgrade_status.report'));
$this
->assertSession()
->statusCodeEquals(403);
}