Merge pull request #4229 from crazyserver/MOBILE-4694
MOBILE-4694 behat: Fix PHP 7.4 compatibility for LMS 4.1main
commit
07a1509b70
|
@ -740,7 +740,7 @@ EOF;
|
||||||
* @param string $text
|
* @param string $text
|
||||||
* @return string|string[] Transformed 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)) {
|
if (!preg_match('/##(.*)##/', $text, $matches)) {
|
||||||
// No time found, return the original text.
|
// No time found, return the original text.
|
||||||
return $text;
|
return $text;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
defined('MOODLE_INTERNAL') || die;
|
defined('MOODLE_INTERNAL') || die;
|
||||||
|
|
||||||
$plugin->version = {{ pluginVersion }};
|
$plugin->version = {{ pluginVersion }};
|
||||||
$plugin->requires = 2016052300;
|
$plugin->requires = 2018051700;
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
$plugin->release = '{{ appVersion }}';
|
$plugin->release = '{{ appVersion }}';
|
||||||
$plugin->component = 'local_moodleappbehat';
|
$plugin->component = 'local_moodleappbehat';
|
||||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test accepting pending policies on signup
|
||||||
But I should not be able to press "Continue" in the app
|
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
|
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
|
And I press "OK" in the app
|
||||||
Then the app should have opened a browser tab with url "moodle.org"
|
Then the app should have opened a browser tab with url "moodle.org"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue