- Issue created by @nickdickinsonwilde
PHPUnit has a random(?) fail. https://git.drupalcode.org/project/spambot/-/pipelines Likely not being handled correctly the timelimit on spambot_report_account()
catch (Exception $e) {
return FALSE;
}
$data = !empty($result) ? $result->getBody()->getContents() : '';
if (!empty($result->getStatusCode()) && $result->getStatusCode() == 200 && !empty($data) && stripos($data, 'data submitted successfully') !== FALSE) {
$success = TRUE;
}
elseif (stripos($data, 'duplicate') !== FALSE) {
// www.stopforumspam.com can return a 503 code
// with data = '<p>recent duplicate entry</p>'
// which we will treat as successful.
$success = TRUE;
}
Run PHP unit multiple times in close succession?
TBD
Active
1.0
Code