You are here

public function UpgradeStatusAccessTest::testDeprecationDashboardAccessPrivileged in Upgrade Status 8.3

Same name and namespace in other branches
  1. 8 tests/src/Functional/UpgradeStatusAccessTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusAccessTest::testDeprecationDashboardAccessPrivileged()
  2. 8.2 tests/src/Functional/UpgradeStatusAccessTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusAccessTest::testDeprecationDashboardAccessPrivileged()

Tests access with user that has the correct permission.

File

tests/src/Functional/UpgradeStatusAccessTest.php, line 38

Class

UpgradeStatusAccessTest
Tests the accessibility of the deprecation dashboard.

Namespace

Drupal\Tests\upgrade_status\Functional

Code

public function testDeprecationDashboardAccessPrivileged() {
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer software updates',
  ]));
  $this
    ->drupalGet(Url::fromRoute('upgrade_status.report'));
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}