Commit graph

142 commits

Author SHA1 Message Date
Dan Poltawski
abd3fdc977 Merge branch 'wip-MDL-51108-master' of git://github.com/abgreeve/moodle 2015-09-22 11:48:49 +01:00
Adrian Greeve
453adb1adf MDL-51108 mod_data: Addition to behat test for Lat. and Long. 2015-09-18 07:33:12 +08:00
Ryan Wyllie
ec9e1bec57 MDL-50664 mod_data: tests for 'manageapproved' setting.
Adding test coverage for the 'manageapproved' setting that
was added by Johannes Burk.
2015-09-17 06:18:26 +00:00
Ankit Agarwal
731c2712e7 MDL-50173 ratings: Use proper checks to ensure ratings are viewable.
Mainly to verify groups visibility this new callback has been created.

Note this was originally 3 commits but for amending purposes they have
been squashed.
2015-09-09 04:07:21 +02:00
David Monllao
9dbcdd8b1f Merge branch 'MDL-49937-master' of git://github.com/jleyva/moodle 2015-04-24 10:19:18 +01:00
Juan Leyva
8352aa50f3 MDL-49937 data: Handle admins/managers in get_databases_by_courses 2015-04-23 09:37:06 +02:00
Rajesh Taneja
0fe86bbdbb MDL-49799 behat: replaced asd.com with example.com
asd.com is a valid domain, we should use reserved domain names for testing
2015-04-20 11:21:20 +08:00
John Okely
9b5e702a11 MDL-49748 mod_data: Fix undefined offset error and add behat coverage 2015-04-10 09:42:34 +08:00
Juan Leyva
067b3fda6a MDL-49337 webservices: Unit tests for mod_data_get_databases_by_courses 2015-03-24 10:46:36 +01:00
John Okely
1c3b2058c8 MDL-5583 mod_data: Improve required fields
Fix accidental <tr> in some field modify screens
Update mod_data version
Change required asterisk to image
Improve required error message
Fix required icon positions
Remove required code from date field
Add name in labels for fields
Add required field option for multimenu
Remove old required field title text modifier
Add multimenu to behat
Add more comprehensive behat tests
Reload old input when an input error occurs
Behat grammar fixes
Allow location of 0, 0
Use html_writer
Fix existing mod_data behat tests
2015-03-09 13:56:16 +08:00
Damyon Wiese
b89cca197e MDL-5583 mod_data: Add required fields
This is implemented for most fields but not all. The reason is that there are
some fields for which this does not make sense because no entry is a valid entry.

The supported fields are:
    checkbox
    file
    latlong
    menu
    number
    picture
    radio
    text
    textarea
    url

The unsupported fields are:
    date
    multimenu
2015-03-06 09:55:49 +08:00
Adrian Greeve
14fb7662cc MDL-20053 mod_data: Update to fix unit tests. 2015-01-19 15:24:47 +08:00
Adrian Greeve
c1d222fcf8 MDL-20053 mod_data: Update to behat tests
A bulk delete of entries has been added to
the behat tests.
2015-01-19 15:24:47 +08:00
Russell Smith
d2c58b95bb MDL-43835 phpunit: Correct unit tests.
When different ID's are set for each sequence a number
of unit test failures appear.  They have been corrected
to allow unit tests to pass with the new generator in place.
2014-06-17 19:08:01 +10:00
David Monllao
a0f59af847 MDL-44621 behat: Automating MDLQA-20
Database activity entries can be viewed in a list
or singly or they can be searched or browsed.
2014-04-15 20:16:19 +07:00
David Monllao
f2cc870f9c MDL-44618 behat: MDLQA-18 converted to a behat scenario
In a database activity, students can add
entries to a database.
2014-04-15 18:34:36 +07:00
David Monllao
7e471fca18 MDL-44618 behat: Steps to speed up mod_data features creation
A step to add a field to a database and
another one to add a database entry.
2014-04-15 18:22:22 +07:00
Ankit Agarwal
b63f773296 MDL-44717 events: Fix multiple issues in events
Fix various incorrect urls
Fix incorrect phpdocs and other minor code style issues
Fix missing/incorrect strings

AMOS BEGIN
 MOV [eventblogassociationcreated, core_blog],[eventblogassociationadded, core_blog]
AMOS END
2014-04-01 15:08:34 +08:00
Rajesh Taneja
b54696395d MDL-44552 Events: Fixed wrong id returned in get_url 2014-03-19 09:57:44 +08:00
Mark Nelson
561672d3a6 MDL-40061 mod_data: replaced 'record delete' add_to_log call with an event 2014-02-14 18:40:19 -08:00
Mark Nelson
3909293faf MDL-40061 mod_data: replaced 'templates saved' add_to_log call with an event 2014-02-14 18:39:56 -08:00
Mark Nelson
3ac413b28e MDL-40061 mod_data: replaced 'templates view' add_to_log call with an event 2014-02-14 18:39:55 -08:00
Mark Nelson
76ca452c12 MDL-40061 mod_data: replaced 'add' add_to_log call with an event 2014-02-14 18:39:50 -08:00
Mark Nelson
45eae37967 MDL-40061 mod_data: replaced 'update' add_to_log call with an event 2014-02-14 18:13:05 -08:00
Mark Nelson
d1ec55570d MDL-40061 mod_data: replaced 'fields update' add_to_log call with an event 2014-02-14 18:12:41 -08:00
Mark Nelson
e0d7ed6dae MDL-40061 mod_data: replaced 'fields add' add_to_log call with an event 2014-02-14 18:12:13 -08:00
Mark Nelson
e37c413e87 MDL-40061 mod_data: replaced 'fields delete' add_to_log call with an event 2014-02-14 18:11:47 -08:00
Marina Glancy
1b066c06c6 Merge branch 'MDL-43440-master' of git://github.com/mr-russ/moodle 2014-02-03 13:42:23 +08:00
Rajesh Taneja
623a32e50d MDL-43736 Events: Updated unit test to test context not used in event 2014-01-29 11:39:50 +08:00
Russell Smith
74b63eae76 MDL-43440 unit testing: Use cmid in unit tests when it should be used.
instance is has been used instead of cmid.  This works as all id's are 1
in most cases, but not always.

accesslib_clear_all_caches_for_unit_testing was updated to clear the
$USER->access cache which would fail test when the wrong user's data was used.
2014-01-25 08:57:32 +11:00
Rajesh Taneja
cdfd607449 MDL-43293 Events: Added unit test for comment events 2013-12-23 09:22:15 +08:00
Marina Glancy
7fbe33fcf1 MDL-42400 generator: module generators call add_moduleinfo instead of direct inserts 2013-10-26 14:00:23 +11:00
Adrian Greeve
e727e8ff58 MDL-40871 - mod_data: Unit tests for data_delete_record() 2013-08-09 16:53:18 +08:00
Adrian Greeve
a327f25ef1 MDL-31776 - lib: Alternate name fields
Add support for additional name fields and flexible formating of
user names.
2013-07-09 11:45:50 +08:00
David Monllao
6b21986911 MDL-37457 testing Mark current classes as deprecated 2013-01-15 11:07:45 +08:00
David Monllao
5c3c2c81be MDL-37457 testing Refactoring references 2013-01-15 11:07:43 +08:00
Adrian Greeve
76fb0443b6 MDL-34448 - mod/data - Fixing separate groups viewing all entries. 2012-10-05 08:11:11 +08:00
Petr Skoda
6b04fdc0b6 MDL-32400 improve module generators
Module generators are using standard *_add_instance() methods which helps with testing, it also updates grades and calendar events if used.
2012-04-15 14:16:59 +02:00
Petr Skoda
c691274bf9 MDL-32323 use new loadDataSet in mod_data and fix typos in last commit 2012-04-10 21:07:56 +02:00
Petr Skoda
5b8d5c19fd MDL-32323 convert mod_data search test 2012-04-10 15:27:13 +02:00
Petr Skoda
9bb2b515ce MDL-32323 fix generator file name typos 2012-04-10 15:27:12 +02:00
Petr Skoda
cbdf52baa5 MDL-32323 add basic mod_data data generator 2012-04-10 15:27:10 +02:00