You are here

public function UpgradeStatusAccessTest::testDeprecationDashboardAccessUnprivileged in Upgrade Status 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/UpgradeStatusAccessTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusAccessTest::testDeprecationDashboardAccessUnprivileged()
  2. 8.2 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\Functional

Code

public function testDeprecationDashboardAccessUnprivileged() {
  $this
    ->drupalGet(Url::fromRoute('upgrade_status.report'));
  $this
    ->assertSession()
    ->statusCodeEquals(403);
}