protected function MonitoringCoreWebTest::loadWatchdog in Monitoring 8
Loads watchdog entries by type.
Parameters
string $type: Watchdog type.
Return value
array List of dblog entries.
1 call to MonitoringCoreWebTest::loadWatchdog()
- MonitoringCoreWebTest::testSensorDisappearedSensors in tests/
src/ Functional/ MonitoringCoreWebTest.php - Tests for disappearing sensors.
File
- tests/
src/ Functional/ MonitoringCoreWebTest.php, line 937
Class
- MonitoringCoreWebTest
- Integration tests for the core pieces of monitoring.
Namespace
Drupal\Tests\monitoring\FunctionalCode
protected function loadWatchdog($type = 'monitoring') {
return \Drupal::database()
->query("SELECT * FROM {watchdog} WHERE type = :type", array(
':type' => $type,
))
->fetchAll();
}