You are here

public function DevelRequirementsTest::testStatusPage in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/DevelRequirementsTest.php \Drupal\Tests\devel\Functional\DevelRequirementsTest::testStatusPage()
  2. 8.2 tests/src/Functional/DevelRequirementsTest.php \Drupal\Tests\devel\Functional\DevelRequirementsTest::testStatusPage()
  3. 4.x tests/src/Functional/DevelRequirementsTest.php \Drupal\Tests\devel\Functional\DevelRequirementsTest::testStatusPage()

Tests that the status page shows a warning when evel is enabled.

File

tests/src/Functional/DevelRequirementsTest.php, line 22

Class

DevelRequirementsTest
Tests devel requirements.

Namespace

Drupal\Tests\devel\Functional

Code

public function testStatusPage() {
  $admin_user = $this
    ->drupalCreateUser([
    'administer site configuration',
  ]);
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('admin/reports/status');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains('Devel module enabled');
  $this
    ->assertSession()
    ->pageTextContains('The Devel module provides access to internal debugging information; therefore it\'s recommended to disable this module on sites in production.');
}