You are here

protected function GmapViewsExtendedTestCase::error in GMap Module 7.2

Fire an error assertion.

Parameters

$message: The message to display along with the assertion.

$group: The type of assertion - examples are "Browser", "PHP".

$caller: The caller of the error.

Return value

FALSE.

Overrides DrupalTestCase::error

File

gmap_test_extended/tests/gmap_test_extended.test, line 44

Class

GmapViewsExtendedTestCase
WebTest tests for gmap_test_extended.module.

Code

protected function error($message = '', $group = 'Other', array $caller = NULL) {
  if ($message == 'Undefined index: location_settings') {

    // change error (Notice) to debug message
    return $this
      ->assert('debug', $message, 'Debug', $caller);
  }

  // @todo create follow-up
  if ($message == 'Undefined index: iwq') {

    // change error (Notice) to debug message
    return $this
      ->assert('debug', $message, 'Debug', $caller);
  }

  // @todo create follow-up
  if ($message == 'Undefined index: highlight_nodearg_color') {

    // change error (Notice) to debug message
    return $this
      ->assert('debug', $message, 'Debug', $caller);
  }
  return parent::error($message, $group, $caller);
}