2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// If the current method starts with "test", run it - it's a test.
if(strtolower(substr($method,0,4))=='test'){
// Insert a fail record. This will be deleted on completion to ensure
// that testing completed.
$method_info=newReflectionMethod($class,$method);
$caller=array(
'file'=>$method_info->getFileName(),
'line'=>$method_info->getStartLine(),
'function'=>$class.'->'.$method.'()',
);
$completion_check_id=DrupalTestCase::insertAssert($this->testId,$class,FALSE,t('The test did not complete due to a fatal error.'),'Completion check',$caller);