diff --git a/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php b/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php index 2dd1922d200..fe597a9cb5f 100644 --- a/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php +++ b/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php @@ -1033,7 +1033,7 @@ public function tearDown(): void // and we have run out of retries ($this->retriesLeft is set by the // AutoRetryTrait): if ( - $this->hasFailed() + $this->status()->isFailure() && ($imageDir = getenv('VUFIND_SCREENSHOT_DIR')) ) { $filename = $this->getName() . '-' . $this->retriesLeft . '-' @@ -1061,7 +1061,7 @@ public function tearDown(): void } $htmlValidationException = null; - if (!$this->hasFailed()) { + if (!$this->status()->isFailure()) { try { $this->validateHtml(); } catch (\Exception $e) {