Commit graph

17 commits

Author SHA1 Message Date
Andrew Nicols
776f4bd80c MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
David Mudrák
ad30fde448 MDL-71425 lang: Fix reworded strings in tests 2021-05-04 17:45:18 +02:00
Sara Arjona
ef557b970f MDL-69331 core_h5p: fix behat errors 2021-04-16 11:09:02 +02:00
Sara Arjona
5308ba0947 MDL-69331 core_h5p: Display error when main library is disabled
H5P contents with the main library disabled won't be deployed; a
message error will be displayed instead of.
2021-04-15 09:03:56 +02:00
Eloy Lafuente (stronk7)
ba5b6089d5 MDL-71036 phpunit: Renamed various regexp-related assertions
In PHPUnit 9.1, the following regexp-related assertions
have been deprecated and there are new alternatives for
all them:
    - assertRegExp()     -> assertMatchesRegularExpression()
    - assertNotRegExp()  -> assertDoesNotMatchRegularExpression()

This is about to, simply, move all cases to the new alternatives.

Source: https://github.com/sebastianbergmann/phpunit/blob/9.1.0/ChangeLog-9.1.md

Regexp to find all them:

    ag 'assertRegExp|assertNotRegExp' -li
2021-03-11 19:22:24 +01:00
Eloy Lafuente (stronk7)
f6711bb394 MDL-67673 phpunit: Fix the return type of template methods
All the setup/teardown/pre/post/conditions template methods
now are required to return void. This was warned with phpunit 7
and now is enforced.

At the same time, fix a few wrong function names,
provider data and param types, return statements...
2020-10-21 12:45:59 +02:00
Ferran Recio
40cef8afe7 MDL-67707 core_h5p: move shared h5p files to core fixtures 2020-03-16 17:52:08 +01:00
Amaia Anabitarte
885d481749 MDL-67337 filter_displayh5p: Apply filter inside <a> tags 2020-03-10 12:10:35 +01:00
Sara Arjona
d273944857 MDL-67464 core_h5p: use h5p.com URLs in behat tests
The H5P content used in behat for validating external URLs
behaviour shouldn't point h5p.org because it may stop working
(it's not for real content). These content have been moved to
moodle.h5p.com (payment account).
Besides, the scenarios loading content from external URLs
have been labelel with @external.
2019-12-12 16:03:52 +01:00
Sara Arjona
9bb296deb0 MDL-66405 core_h5p: Fix behat tests 2019-11-11 12:01:47 +01:00
Eloy Lafuente (stronk7)
9367922f09 MDL-66405 filter_h5p: fix trailing-lines gherkinlint problem 2019-11-11 00:58:03 +01:00
Eloy Lafuente (stronk7)
a1e0f47fe9 Merge branch 'MDL-66405-master' of git://github.com/aanabit/moodle 2019-11-11 00:33:16 +01:00
cescobedo
64e97710a3 MDL-67184 filter_displayh5p: Move upper than urltolink & activityname 2019-11-10 21:40:25 +01:00
Amaia Anabitarte
ba70ec2666 MDL-66405 filter_h5p: Behat tests for H5P filter 2019-11-08 17:08:58 +01:00
Amaia Anabitarte
21cb97560a MDL-67110 filter_h5p: Removing wildcard characters 2019-11-07 10:27:53 +01:00
Amaia Anabitarte
6d2c5025b2 MDL-66398 filter_h5p: Improve H5P filter to allow internal file URLs 2019-10-30 12:14:27 +01:00
Amaia Anabitarte
826e76edc9 MDL-66954 filter_displayh5p: Rename filter_h5p to filter_displayh5p
We are renaming existing h5p_filter in 3.8dev to h5p_displayh5p to avoid collisions with filter_h5p plugin
in Moodle plugin directory.
Everybody having a 3.8dev installation with filter_h5p plugin should drop the old filter or re-install from scratch.
2019-10-18 15:35:15 +02:00