Example #1
0
 /**
  * Wraps drupalPostForm() for additional watchdog message assertion.
  *
  * @param $options
  *   In addition to regular $options that are passed to url():
  *   - watchdog: (optional) Boolean whether to assert that only non-severe
  *     watchdog messages have been logged. Defaults to TRUE. Use FALSE to
  *     negate the watchdog message severity assertion.
  *
  * @see MollomWebTestCase->assertMollomWatchdogMessages()
  * @see MollomWebTestCase->assertResponseID()
  * @see DrupalWebTestCase->drupalPostForm()
  */
 protected function drupalPostForm($path, $edit, $submit, array $options = array(), array $headers = array(), $form_html_id = NULL, $extra_post = NULL)
 {
     parent::drupalPostForm($path, $edit, $submit, $options, $headers, $form_html_id, $extra_post);
     if ($this->assertWatchdogErrors) {
         $options += array('watchdog' => RfcLogLevel::NOTICE);
         $this->assertMollomWatchdogMessages($options['watchdog']);
     }
 }