$this->assertNoFieldByXPath('//th[@class="select-all"]', NULL, 'Do not display a "Select all" checkbox when #multiple is FALSE, even when #js_select is TRUE.');
}
-
/**
* Test the whether the option checker gives an error on invalid tableselect values for checkboxes.
*/
}
-
/**
* Test the whether the option checker gives an error on invalid tableselect values for radios.
*/
$this->assertTrue(isset($errors['tableselect']), 'Option checker disallows invalid values for radio buttons.');
}
-
/**
* Helper function for the option check test to submit a form while collecting errors.
*
$errors = $form_state->getErrors();
// Clear errors and messages.
- drupal_get_messages();
+ \Drupal::messenger()->deleteAll();
$form_state->clearErrors();
// Return the processed form together with form_state and errors