MonitoringDemoTest.php in Monitoring 8
File
modules/demo/tests/src/Functional/MonitoringDemoTest.php
View source
<?php
namespace Drupal\Tests\monitoring_demo\Functional;
use Drupal\Tests\monitoring\Functional\MonitoringTestBase;
class MonitoringDemoTest extends MonitoringTestBase {
public static $modules = [
'monitoring_demo',
];
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'));
}
}