You are here

protected function VariableCheckTestCase::error in Variable Check 7

Stop our expected unserialize() notices from failing tests.

Overrides DrupalTestCase::error

File

./variablecheck.test, line 30
Tests for Variablecheck.

Class

VariableCheckTestCase
Functional tests for the variablecheck module.

Code

protected function error($message = '', $group = 'Other', array $caller = NULL) {
  if ($group == 'Notice' && $message == 'unserialize(): Error at offset 0 of 9 bytes') {
    return $this
      ->assert('debug', 'Suppressed notice <em>' . $message . '</em>', 'Debug', $caller);
  }
  return parent::error($message, $group, $caller);
}