faa6bf1f52178b8bd4733b8d3f06803b991eb8f1
[yaffs-website] / web / modules / contrib / devel / tests / src / Functional / DevelRequirementsTest.php
1 <?php
2
3 namespace Drupal\Tests\devel\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Tests devel requirements.
9  *
10  * @group devel
11  */
12 class DevelRequirementsTest extends BrowserTestBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public static $modules = ['devel'];
18
19   /**
20    * Tests that the status page shows a warning when evel is enabled.
21    */
22   public function testStatusPage() {
23     $admin_user = $this->drupalCreateUser(['administer site configuration']);
24     $this->drupalLogin($admin_user);
25
26     $this->drupalGet('admin/reports/status');
27     $this->assertSession()->statusCodeEquals(200);
28
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.');
31   }
32
33 }