private function WatchdogContext::isDiabled in Lightning Core 8.5
Same name and namespace in other branches
- 8.2 tests/contexts/WatchdogContext.behat.inc \WatchdogContext::isDiabled()
- 8.3 tests/contexts/WatchdogContext.behat.inc \WatchdogContext::isDiabled()
- 8.4 tests/contexts/WatchdogContext.behat.inc \WatchdogContext::isDiabled()
Checks if errors should be checked after the scenario.
Parameters
\Behat\Behat\Hook\Scope\ScenarioScope $scope: The scenario scope.
Return value
bool TRUE if errors should be checked, FALSE otherwise.
2 calls to WatchdogContext::isDiabled()
- WatchdogContext::checkWatchdog in tests/
contexts/ WatchdogContext.behat.inc - Check for errors since the scenario started.
- WatchdogContext::setUp in tests/
contexts/ WatchdogContext.behat.inc - Install dblog and store the time the scenario began.
File
- tests/
contexts/ WatchdogContext.behat.inc, line 40
Class
- WatchdogContext
- Tracks errors logged to the database during the scenario.
Code
private function isDiabled(ScenarioScope $scope) {
return in_array('errors', $scope
->getScenario()
->getTags());
}