From edf601b33c5180d0f5fa09a3e947c07237b59225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 6 Nov 2024 09:57:52 +0100 Subject: [PATCH 1/2] MOBILE-4694 behat: Fix PHP 7.4 compatibility for LMS 4.1 --- local_moodleappbehat/tests/behat/behat_app_helper.php | 2 +- local_moodleappbehat/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/local_moodleappbehat/tests/behat/behat_app_helper.php b/local_moodleappbehat/tests/behat/behat_app_helper.php index 7427a8937..4621b6a03 100644 --- a/local_moodleappbehat/tests/behat/behat_app_helper.php +++ b/local_moodleappbehat/tests/behat/behat_app_helper.php @@ -740,7 +740,7 @@ EOF; * @param string $text * @return string|string[] Transformed text. */ - protected function transform_time_to_string(string $text): string|array { + protected function transform_time_to_string(string $text) { if (!preg_match('/##(.*)##/', $text, $matches)) { // No time found, return the original text. return $text; diff --git a/local_moodleappbehat/version.php b/local_moodleappbehat/version.php index 5b031ba5c..21b87fda2 100644 --- a/local_moodleappbehat/version.php +++ b/local_moodleappbehat/version.php @@ -7,7 +7,7 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = {{ pluginVersion }}; -$plugin->requires = 2016052300; +$plugin->requires = 2018051700; $plugin->maturity = MATURITY_STABLE; $plugin->release = '{{ appVersion }}'; $plugin->component = 'local_moodleappbehat'; From 449627676f6791b77109c69e9065ab73723d906d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 6 Nov 2024 10:28:13 +0100 Subject: [PATCH 2/2] MOBILE-4694 behat: Fix site policy test string change --- src/core/features/policy/tests/behat/consent.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/policy/tests/behat/consent.feature b/src/core/features/policy/tests/behat/consent.feature index ac20fd012..37a60fdca 100755 --- a/src/core/features/policy/tests/behat/consent.feature +++ b/src/core/features/policy/tests/behat/consent.feature @@ -21,7 +21,7 @@ Feature: Test accepting pending policies on signup But I should not be able to press "Continue" in the app And I should not be able to press "User account" in the app - When I press "Link to site policy agreement" in the app + When I press "Site policy agreement" "a" in the app And I press "OK" in the app Then the app should have opened a browser tab with url "moodle.org"