You are here

public function SettingsFormTest::testIgnoredModulesPageExists in Nagios Monitoring 8

Simply execute the IgnoredModulesForm.

Tests that the 'admin/config/system/nagios/ignoredmodules' path returns the right content.

File

tests/src/Functional/SettingsFormTest.php, line 79

Class

SettingsFormTest
Tests the settings form functionality

Namespace

Drupal\Tests\nagios\Functional

Code

public function testIgnoredModulesPageExists() {
  $this
    ->drupalLogin($this->modulesUser);
  $this
    ->drupalGet(self::IGNORED_MODULES_PATH);
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains('Select those modules that should be ignored for requirement checks.');
}