Updated to Drupal 8.5. Core Media not yet in use.
[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 Devel module provides access to internal debugging information; therefore it\'s recommended to disable this module on sites in production.');
31   }
32
33 }