Commit graph

153 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
deb0e76eee MDL-73278 phpunit: Rename already namespaced classes to match file name
These are the only cases 100% safe to apply the renaming of the
testcase class names to match the file names.

All other cases are not safe, because they are missing namespace
and may enter into name conflicts. Adding namespaces is not as
simple as imagined because it implies to, also, add a good number
of modifications to core. See the issue for more details.
2021-12-07 23:54:29 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Mihail Geshoski
d1c9c65e53 MDL-71913 mod_h5pactivity: Update behat tests 2021-10-13 11:05:30 +08:00
Mihail Geshoski
3e97273b21 MDL-71913 mod_h5pactivity: Add attempts report setting node 2021-10-13 11:05:29 +08:00
Peter
7a9e3db9dc MDL-52206 completion: Behat test
Co-authored-by: aanabit
2021-10-07 10:17:25 +08:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Andrew Nicols
891d1bfad3 MDL-71055 behat: Update core settings to use generator
These changes have only been applied to settings which were already
using settings names and values, but which were still using the UI.
2021-08-23 12:23:03 +08:00
Andrew Nicols
776f4bd80c MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
Sara Arjona
692abf2c46 MDL-71885 core_h5p: Display the edit content button
A new parameter has been added to the display method, to define whether
the edit button should be displayed or not.
The H5P activity will display this button (if the user has the required
permissions). However, it won't be displayed when previewing H5P in the
content bank.
2021-07-05 10:56:13 +02:00
Ilya Tregubov
bbfb73afbd MDL-68394 h5pactivity: Limit query to given course module. 2021-05-27 12:08:28 +02:00
Ilya Tregubov
045c3ec3ee MDL-68394 h5pactivity: Implement methods to display recent
activity info.
2021-05-26 06:54:34 +02:00
David Mudrák
ad30fde448 MDL-71425 lang: Fix reworded strings in tests 2021-05-04 17:45:18 +02:00
Ilya Tregubov
cf1cf222e7 MDL-66431 core: Fix behat tests.
Move activity creation to data generators. Only fixing those
tests failing due to removing usemodchooser preference.
2021-05-01 16:22:03 +02:00
Sara Arjona
1aa318d3e0 Merge branch 'MDL-71162-master-2' of git://github.com/mickhawkins/moodle 2021-04-29 17:27:20 +02:00
Michael Hawkins
a74f47af90 MDL-71162 mod_h5pactivity: Add behat testing for completion conditions 2021-04-29 00:41:07 +08:00
Andrew Nicols
7eb248c27b MDL-70909 mod_h5pactivity: Whitespace fix 2021-04-28 10:25:36 +08:00
Ferran Recio
9a11eab790 MDL-70909 mod_h5pactivity: fix reports on freeze context 2021-04-27 15:35:57 +02:00
Sara Arjona
e82e8b4b1c Merge branch 'MDL-71337-master' of git://github.com/junpataleta/moodle 2021-04-15 08:30:08 +02:00
Jun Pataleta
18ad675111 MDL-71337 mod_h5pactivity: Increase window size during test
The addition of the activity information moves the h5p content down
out of the window view on Firefox which causes the Check button to be
unclickable. This patch increases the window size to ensure that the
check button is visible and clickable.

Credits to Eloy <stronk7@moodle.org> for the thorough investigation
of the root cause of this issue :)
2021-04-15 12:44:31 +08:00
Andrew Nicols
c10791cab9 Merge branch 'MDL-71169-master-execute' of git://github.com/mudrd8mz/moodle 2021-04-14 08:35:07 +08:00
Jun Pataleta
16a9e8ada7 MDL-71161 mod_h5pactivity: Display activity information output component 2021-04-13 01:21:12 +08:00
David Mudrák
22ecf2f9b8 MDL-71169 external: Do not explicitly specify the default methodname 2021-03-22 15:56:46 +01:00
Ferran Recio
b08381b212 MDL-70980 mod_h5pactivity: fix review mode 2021-03-22 10:52:44 +01:00
Eloy Lafuente (stronk7)
9fd6ac7c9d MDL-71036 phpunit: xml config - switch coverage info to new includes
This applies the "whitelist" => "include" changes to all the core
phpunit_coverage_info occurrences, so core won't emit any deprecation
warning (see previous commit).

At the same time, modified a bunch of comments in coverage files
to be more readable/understandable.
2021-03-11 23:04:32 +01:00
Eloy Lafuente (stronk7)
8a14a7bd22 MDL-71036 phpunit: assertContains() now performs strict comparison
The methods assertContains() and assertNotContains() now perform
strict (type and value) comparison, pretty much like assertSame()
does.

A couple of new assertContainsEquals() and assertNotContainsEquals()
methods have been created to provide old (non-strict) behavior, pretty
much like assertEquals() do.

Apart from replacing the calls needing a relaxed comparison to those
new methods, there are also a couple of alternative, about how to
fix this, depending of every case:

- If the test is making any array_values() conversion, then it's better
  to remove that conversion and use assertArrayHasKey(), that is not
  strict.
- Sometimes if may be also possible to, simply, cast the expectation
  to the exact type coming in the array. I've not applied this technique
  to any of the cases in core.

Link: https://github.com/sebastianbergmann/phpunit/issues/3426
2021-03-11 23:04:31 +01:00
Sara Arjona
40720df008 Merge branch 'MDL-68721-master' of git://github.com/ferranrecio/moodle 2021-03-03 17:51:16 +01:00
Ferran Recio
fe3ee4a066 MDL-68721 mod_h5pactivity: report acceptance tests 2021-03-03 17:21:56 +01:00
Andrew Nicols
cffeb4b797 MDL-69259 h5pactivity: Whitespace fix 2021-02-22 12:19:18 +08:00
Ilya Tregubov
82433c0b6a MDL-69259 h5pactivity: Add get_user_attempts webservice 2021-02-19 16:07:51 +02:00
Andrew Nicols
243262d940 MDL-68853 mod_h5pactivity: Whitespace fix 2021-02-17 12:02:53 +08:00
Ilya Tregubov
4795b09f23 MDL-68853 h5pactivity: Add a websevice to trigger report_viewed event. 2021-02-12 15:49:05 +02:00
Sara Arjona
68d39e634f Merge branch 'MDL-68736-master' of git://github.com/ferranrecio/moodle 2021-02-09 15:05:29 +01:00
Ilya Tregubov
7a77493ba5 MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page. 2021-01-26 15:19:01 +02:00
Ferran Recio
734bf378a5 MDL-68736 h5pactivity: remove legacy log method 2021-01-26 11:15:57 +01:00
Sara Arjona
064e1a7e39 MDL-70408 mod_h5pactivity: Add link to content bank content
If the activity uses a referenced H5P file from the content bank,
a link for displaying this specific content will be shown into the H5P
activity form instead of the generic one to the main content bank
page.
2020-12-17 18:32:38 +01:00
Ilya Tregubov
932e8ea7a3 MDL-69868 h5pactivity: Prevent breaking $USER when seeing
attempt report.
2020-11-26 12:39:49 +02:00
Eloy Lafuente (stronk7)
d25b7ebd86 Merge branch 'MDL-69174-master' of git://github.com/sarjona/moodle into master 2020-09-02 13:11:33 +02:00
Sara Arjona
40f6a3a1d1 MDL-69174 mod_h5pactivity: component passed always
The $component = 'mod_h5pactivity' will be passed always to the H5P
player because it's required for being able to call these activities
from outside using embed code. The xAPI implementation checks whether
the information should be tracked or not.
2020-09-02 12:09:30 +02:00
Ferran Recio
bcea21d894 MDL-68892 mod_h5pactivity: add required to package 2020-08-28 17:44:38 +02:00
Eloy Lafuente (stronk7)
fbb0767536 MDL-69475 versions: bump all versions and requires in master
version = 2021052500 release version
requires= 2021052500 same than version

Why 20210525? (25th May 2021) ?

Because master is going to be Moodle 4.0, to be released
on November 2021. And, until then, we are going to have
a couple of "intermediate" releases:

- Moodle 3.10 to be released 9th November 2020. (2020110900)

  This version will be using versions from today to 2020110900
  (once it's released the YYYYMMDD part stops advancing).

- Moodle 3.11 to be released 10th May 2021. (2021051000)

  This version will be using versions from 3.10 release to 2021051000
  (once it's released the YYYYMMDD part stops advancing).

That means that all versions from today to 2021051000 are going
to be used by those 2 "intermediate" releases (3.10 and 3.11).

And we cannot use them in master, because it's forbidden to have
any overlapping of versions between branches (or different upgrade
paths will fail).

So, get that 2021051000, let's add it a couple of weeks to cover
the on-sync period (or a 2 weeks delay max!) and, the first version
that master can "own" in exclusive (without any overlap) is, exactly,
25th May 2021, hence our 20210525.
2020-08-18 00:47:15 +02:00
Eloy Lafuente (stronk7)
b764343e5a MDL-69044 upgrade: add 3.9.0 separation line to all upgrade scripts 2020-06-14 13:08:09 +02:00
Sara Arjona
1826ac971a Merge branch 'MDL-68902-master' of git://github.com/ferranrecio/moodle 2020-06-10 17:57:40 +02:00
Ferran Recio
56d9b5f8d5 MDL-68902 mod_h5pactivity: fix result report output 2020-06-10 17:50:55 +02:00
Jake Dallimore
337e2e2b23 Merge branch 'MDL-68973' of https://github.com/stronk7/moodle 2020-06-10 16:13:57 +08:00
Sara Arjona
e5a2b74d8b Merge branch 'MDL-68955' of https://github.com/Chocolate-lightning/moodle 2020-06-10 08:06:05 +02:00
Mathew May
e0c41c0449 MDL-68955 mod_h5pactivity: Enable dndupload to H5P activity 2020-06-10 10:10:51 +08:00
Helen Foster
1ab405f4a2 MDL-68972 lang: Import fixed English strings (en_fix) 2020-06-09 20:56:34 +02:00
Eloy Lafuente (stronk7)
115cc0214f MDL-68973 versions: bump all versions and requires near release
version = 2020061500 release version
requires= 2020060900 current rc1 (week7roll1) version
2020-06-09 16:23:09 +02:00
Andrew Nicols
f2d6a96494 Merge branch 'MDL-68956' of https://github.com/Chocolate-lightning/moodle 2020-06-09 08:51:38 +08:00
Jun Pataleta
eee5661146 Merge branch 'MDL-68916-master' of git://github.com/mihailges/moodle 2020-06-08 14:25:54 +08:00