DevelRequirementsTest.php in Devel 8.2
File
tests/src/Functional/DevelRequirementsTest.php
View source
<?php
namespace Drupal\Tests\devel\Functional;
use Drupal\Tests\BrowserTestBase;
class DevelRequirementsTest extends BrowserTestBase {
public static $modules = [
'devel',
];
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.');
}
}