From 6a0185d477f711e93b4e5157179cbe303dff0e3b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 18 Oct 2022 14:49:04 +1300 Subject: [PATCH 1/2] ENH Update deprecation messages --- src/Context/BasicContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/BasicContext.php b/src/Context/BasicContext.php index dab5810..c7bdd0b 100644 --- a/src/Context/BasicContext.php +++ b/src/Context/BasicContext.php @@ -624,7 +624,7 @@ JS; * @param string $path * @return Call\Given * - * @deprecated 4.5..5.0 - use iAttachTheFileToTheField() instead + * @deprecated 4.5..5.0 Use iAttachTheFileToTheField() instead */ public function iAttachTheFileTo($field, $path) { From 5c6b9756fbe206cc4962d2c37a700e876435b965 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 18 Oct 2022 14:49:22 +1300 Subject: [PATCH 2/2] API Update deprecations --- src/Context/BasicContext.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Context/BasicContext.php b/src/Context/BasicContext.php index c7bdd0b..49335a8 100644 --- a/src/Context/BasicContext.php +++ b/src/Context/BasicContext.php @@ -2,6 +2,7 @@ namespace SilverStripe\BehatExtension\Context; +use SilverStripe\Dev\Deprecation; use Exception; use InvalidArgumentException; use Behat\Behat\Context\Context; @@ -624,10 +625,11 @@ JS; * @param string $path * @return Call\Given * - * @deprecated 4.5..5.0 Use iAttachTheFileToTheField() instead + * @deprecated 4.5.0 Use iAttachTheFileToTheField() instead */ public function iAttachTheFileTo($field, $path) { + Deprecation::notice('4.5.0', 'Use iAttachTheFileToTheField() instead'); // Remove wrapped button styling to make input field accessible to Selenium $js = <<