Simey Lameze
f62ef26f37
MDL-63399 behat: update existing tests to use the better download steps
...
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-09-06 12:14:33 +08:00
Paul Holden
aa8f7a6a39
MDL-82669 editor: remove reliance on Atto editor in Behat scenarios.
2024-08-02 10:33:34 +01:00
Huong Nguyen
0ea950e710
Merge branch 'MDL-82236-404' of https://github.com/andelacruz/moodle into MOODLE_404_STABLE
2024-07-10 09:04:14 +07:00
Angelia Dela Cruz
6a33cb3e08
MDL-82236 mod_data: Behat to display DB activity entry rating
2024-07-09 14:53:06 +08:00
Angelia Dela Cruz
f297094295
MDL-81296 mod_data: Behat test for data activity readonly availability
2024-07-09 11:38:35 +08:00
Eloy Lafuente (stronk7)
091b458c52
MDL-81522 phpunit: Add missing void return type to all tests #2
...
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.
The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.
All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 12:18:05 +02:00
Eloy Lafuente (stronk7)
1093256560
MDL-81522 phpunit: Add missing void return type to all tests
...
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.
All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 12:18:04 +02:00
Laurent David
cb9527cd4f
MDL-81875 mod_data: Revert database autolink removal
...
Autolinks are used in the database for text fields via
the auto-linking filter.
The revert is partial here because of changes made
in MDL-70384 to all field forms/templates
This reverts commit 42edaba5 from MDL-80949
2024-06-04 16:09:31 +02:00
Paul Holden
cab8184fcb
MDL-81274 mod_data: observe current approved value on record import.
2024-04-22 12:48:54 +01:00
Laurent David
ba9b291c03
MDL-81267 mod_data: Additional tests
2024-04-17 10:33:08 +02:00
Andrew Nicols
613f933442
Merge branch 'MDL-80820' of https://github.com/marinaglancy/moodle
2024-04-15 10:42:22 +08:00
Jun Pataleta
04ec43be5e
MDL-70829 mod_data: Mark up decorative images properly
...
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes
2024-04-12 10:42:10 +08:00
Marina Glancy
42c76b711a
MDL-80820 lib/pear: phpdoc corrections
2024-04-08 10:13:39 +01:00
Marina Glancy
ef1759da74
MDL-80820 various: fix incorrect phpdocs
2024-04-08 10:13:10 +01:00
Sara Arjona
42edaba56f
MDL-80949 mod_data: Remove unused Allow autolink param for text field
2024-03-18 09:47:02 +01:00
Eloy Lafuente (stronk7)
361dfe8145
MDL-75952 general: Since php81, refection->setAccessible() is no-op
...
Refereces:
- https://wiki.php.net/rfc/make-reflection-setaccessible-no-op
- https://www.php.net/manual/en/reflectionproperty.setaccessible.php
- https://www.php.net/manual/en/reflectionmethod.setaccessible.php
As of PHP 8.1.0, calling this method has no effect; all methods are
invokable by default. So, let's remove all uses from core, they are
no-op.
2024-03-10 21:15:00 +01:00
Paul Holden
bb6652699e
Merge branch 'MDL-75794-main' of https://github.com/aanabit/moodle into main
2024-02-23 12:54:00 +00:00
Amaia Anabitarte
0c081f004a
MDL-75794 mod_data: deprecate behat steps to generate entries and fields
2024-02-22 17:37:54 +01:00
Sara Arjona
15d399ec8c
Merge branch 'MDL-80404-main' of https://github.com/andelacruz/moodle
2024-02-21 13:23:25 +01:00
Angelia Dela Cruz
6ea99c8897
MDL-80404 mod_data: Behat for url autolinking and opening in new window
2024-02-21 15:59:44 +08:00
Huong Nguyen
0d8c9ed4ae
Merge branch 'MDL-78284-main' of https://github.com/sarjona/moodle
2024-02-21 09:49:41 +07:00
Sara Arjona
8cdd62ca88
MDL-78284 theme: Add new interactive content and update styles
2024-02-15 17:49:43 +01:00
Simey Lameze
7b7be30b4d
MDL-80613 behat: convert manual completion steps to use generators
2024-02-15 17:52:38 +08:00
Angelia Dela Cruz
261a39d8e2
MDL-79768 fix: Fixed random failing Behat due to time difference
2023-10-26 18:09:16 +08:00
Angelia Dela Cruz
46f31447f2
MDL-79768 mod_data: Test for student can see upcoming data activity
2023-10-23 08:52:19 +08:00
Amaia Anabitarte
b87b72195c
MDL-78527 core_completion: Fixing tests
2023-09-12 15:43:49 +02:00
Andrew Nicols
2b19f23665
Merge branch 'MDL-78158-master' of https://github.com/andelacruz/moodle
2023-07-05 10:23:32 +08:00
Angelia Dela Cruz
09d654b3fe
MDL-78158 behat: Behat cleanup and optimisation
2023-07-04 07:01:27 +08:00
Angelia Dela Cruz
9f101a30b2
MDL-78158 Behat: Use data generators to add blocks
2023-07-03 17:41:21 +08:00
Philipp Memmel
fc13869f5a
MDL-40084 mod_data: Rename and move entries ex-/importer classes
...
Also:
- Extend test coverage
- Small bug fixes
- Codestyle
2023-07-01 20:42:01 +02:00
Philipp Memmel
cf2c91dae2
MDL-40084 mod_data: Add file import support
...
Co-authored-by: Stefan Hanauska <stefan.hanauska@csg-in.de>
2023-06-29 19:18:15 +02:00
Philipp Memmel
4003751163
MDL-40084 mod_data: Add file export support
2023-06-29 19:18:15 +02:00
Philipp Memmel
1296a2b868
MDL-40084 mod_data: Refactor importing data
...
Function data_import_csv has been deprecated.
2023-06-29 19:18:14 +02:00
Philipp Memmel
bdf02ec088
MDL-40084 mod_data: Refactor exporting data
...
Functions data_export_csv, data_export_ods, data_get_exportdata have been deprecated.
2023-06-29 19:18:14 +02:00
Amaia Anabitarte
cb50c71245
MDL-76715 mod_data: Remove data_records when the last field is deleted
2023-06-13 10:52:56 +02:00
David Castro
5d9fec141d
MDL-77791 data: Fix file attachment to search doc
2023-04-25 19:51:44 -05:00
Andrew Nicols
035d818dd3
MDL-76866 mod_data: Disable the HTML editor to insert partial HTML
...
This test is adding table rows into an HTML editor and, quite rightly,
is failing under TinyMCE.
This only worked under Atto because Atto does not perform any HTML
validation. A user would not actually be able to insert the template
content this way, and therefore the test is/was invalid.
This change disables the HTML editor before inserting the template
content, which resembles the actions of a real user.
2023-03-29 20:33:47 +08:00
Sara Arjona
a15d363453
Merge branch 'MDL-77275-master' of https://github.com/laurentdavid/moodle
2023-03-17 13:03:31 +01:00
Mark Johnson
8932fe55e5
MDL-68093 data: Add behat tests for groups
2023-03-14 08:52:26 +00:00
Laurent David
301c56ae1d
MDL-77275 mod_data: Template reset button changes
...
* Remove the reset button in the sticky footer (template page)
* Add the reset button action in the Action menu
2023-03-13 07:35:44 +01:00
Mathew May
e5ca7766e7
MDL-52805 core: Remove legacy log calls
2023-03-07 13:08:46 +08:00
Sara Arjona
529faa9eaa
MDL-77276 mod_data: Update reset single template string
...
When a single template is reset, the string displayed in the modal should
not reference to "all templates" to avoid confusion, as it was shown in the
original prototype for the 4.1 database project.
2023-02-24 11:21:49 +01:00
Andrew Nicols
2de031b74c
Merge branch 'MDL-76066-master' of https://github.com/aanabit/moodle
2023-02-09 10:27:00 +08:00
Andrew Nicols
2f2c587552
Merge branch 'MDL-77100' of https://github.com/paulholden/moodle
2023-02-02 08:30:02 +08:00
Paul Holden
0f58d46b05
MDL-77100 mod_data: replace calls to str_ends_with, fix assertions.
...
Calls to `str_ends_with` are polyfilled currently, as the method is
not present in PHP7.4 or earlier. We should avoid uses of it so as
to not trip up compatibility standard checkers.
2023-01-31 21:35:33 +00:00
Ferran Recio
0213df2f03
MDL-75498 mod_data: add extra tags to templates
2023-01-30 12:01:20 +01:00
Amaia Anabitarte
d4e66f1df5
MDL-76066 mod_data: Trigger field_deleted event when importing
2023-01-23 18:53:44 +01:00
Jun Pataleta
fad05d7929
Merge branch 'MDL-76583-master-withoutrename' of https://github.com/andrewnicols/moodle
2023-01-19 09:44:48 +08:00
Andrew Nicols
a3cc26f8bb
MDL-76583 core: Update uses of external_* classes
2023-01-19 07:34:09 +08:00
Jun Pataleta
aedbfba858
Merge branch 'MDL-76358-master' of https://github.com/laurentdavid/moodle
2023-01-16 09:32:56 +08:00