devel-4.x-dev/tests/src/Functional/DevelRequirementsTest.php

tests/src/Functional/DevelRequirementsTest.php
<?php

namespace Drupal\Tests\devel\Functional;

/**
 * Tests devel requirements.
 *
 * @group devel
 */
class DevelRequirementsTest extends DevelBrowserTestBase {

  /**
   * Tests that the status page shows a warning when evel is enabled.
   */
  public function testStatusPage() {
    $this->drupalLogin($this->adminUser);

    $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.');
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc