function RevisionRevertFormTest::getLogs
Loads watchdog entries by channel.
Parameters
string $channel: The logger channel.
Return value
string[] Watchdog entries.
1 call to RevisionRevertFormTest::getLogs()
- RevisionRevertFormTest::testSubmitForm in core/
tests/ Drupal/ FunctionalTests/ Entity/ RevisionRevertFormTest.php - Tests revision revert, and expected response after revert.
File
-
core/
tests/ Drupal/ FunctionalTests/ Entity/ RevisionRevertFormTest.php, line 372
Class
- RevisionRevertFormTest
- Tests reverting a revision with revision revert form.
Namespace
Drupal\FunctionalTests\EntityCode
protected function getLogs(string $channel) : array {
return \Drupal::database()->select('watchdog')
->fields('watchdog')
->condition('type', $channel)
->execute()
->fetchAll();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.