You are here

private function WatchdogContext::isDiabled in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 tests/contexts/WatchdogContext.behat.inc \WatchdogContext::isDiabled()
  2. 8.3 tests/contexts/WatchdogContext.behat.inc \WatchdogContext::isDiabled()
  3. 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 34

Class

WatchdogContext
Tracks errors logged to the database during the scenario.

Code

private function isDiabled(ScenarioScope $scope) {
  return in_array('errors', $scope
    ->getScenario()
    ->getTags());
}