You are here

public function MonitoringDemoTest::testInstalled in Monitoring 8

Asserts the demo instructions on the frontpage.

File

modules/demo/tests/src/Functional/MonitoringDemoTest.php, line 24

Class

MonitoringDemoTest
Tests the demo module for monitoring.

Namespace

Drupal\Tests\monitoring_demo\Functional

Code

public function testInstalled() {
  $this
    ->drupalGet('');
  $this
    ->assertText('Monitoring');
  $this
    ->assertText(t('Welcome to the Monitoring demo installation.'));
  $this
    ->assertLink(t('Monitoring sensors overview'));
  $this
    ->assertLink(t('Monitoring sensors settings'));
  $this
    ->assertText(t('Sensor example: "Installed modules"'));
  $this
    ->assertLink(t('Configure'));
  $this
    ->assertLink(t('Uninstall'), 0);
  $this
    ->assertLink(t('Uninstall'), 1);
  $this
    ->assertText(t('Drush integration - open up your console and type in # drush monitoring-sensor-config'));
}