From 7c7c9d00eedf3598ce151897f4934c6cdc4849c5 Mon Sep 17 00:00:00 2001 From: Demian Katz Date: Fri, 6 Sep 2024 14:58:41 -0400 Subject: [PATCH] Fix message/types in findCssAndCallMethod(). --- .../src/VuFindTest/Integration/MinkTestCase.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php b/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php index 9b915e8d137..feed36ea694 100644 --- a/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php +++ b/module/VuFind/src/VuFindTest/Integration/MinkTestCase.php @@ -738,12 +738,12 @@ protected function findCssAndGetHtml( /** * Return value of a method of an element selected via CSS; retry if it fails due to DOM change. * - * @param Element $page Page element - * @param string $selector CSS selector - * @param callable $method Method to call - * @param int $timeout Wait timeout for CSS selection (in ms) - * @param int $index Index of the element (0-based) - * @param int $retries Retry count for set loop + * @param Element $page Page element + * @param string $selector CSS selector + * @param string $method Method to call + * @param int $timeout Wait timeout for CSS selection (in ms) + * @param int $index Index of the element (0-based) + * @param int $retries Retry count for set loop * * @return string */ @@ -771,7 +771,7 @@ protected function findCssAndCallMethod( $this->snooze(); } - throw new \Exception('Failed to get text after ' . $retries . ' attempts.'); + throw new \Exception("Failed to call $method on '$selector' after $retries attempts."); } /**