3 namespace Drupal\Tests\devel\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests devel requirements.
12 class DevelRequirementsTest extends BrowserTestBase {
17 public static $modules = ['devel'];
20 * Tests that the status page shows a warning when evel is enabled.
22 public function testStatusPage() {
23 $admin_user = $this->drupalCreateUser(['administer site configuration']);
24 $this->drupalLogin($admin_user);
26 $this->drupalGet('admin/reports/status');
27 $this->assertSession()->statusCodeEquals(200);
29 $this->assertSession()->pageTextContains('Devel module enabled');
30 $this->assertSession()->pageTextContains('The module provide the access to debug informations, therefore is recommended to disable the Devel module on production sites.');