You are here

public function NagiosCheckTest::testWatchdogIfNotEnabled in Nagios Monitoring 8

File

tests/src/Kernel/NagiosCheckTest.php, line 101

Class

NagiosCheckTest
Tests the functionality to monitor cron.

Namespace

Drupal\Tests\nagios\Kernel

Code

public function testWatchdogIfNotEnabled() {
  $expected = [
    'status' => 3,
    'type' => 'state',
    'text' => 'Unable to SELECT FROM {watchdog}',
  ];
  self::assertEquals($expected, nagios_check_watchdog()['data']);
}