David Monllao
d46979ec3a
MDL-44620 behat: Automates MDLQA-6
...
- MDLQA-6: By default, a new course contains a news
forum in which only teachers can post and subscription
is forced
2014-05-13 17:24:33 +07:00
David Monllao
f083d6145e
MDL-43738 behat: Updating features files
...
The following used steps were replaced by the ones
added in this issue:
- I fill the moodle form with
- I fill in with
- I select from
- I select radio button
- I check
- I uncheck
- the field should match
Also removing test for deprecated steps:
- the ASD checkbox should be checked
- the ASD checkbox should not be checked
2014-02-27 18:22:05 +08:00
Frederic Massart
457b82f238
MDL-43337 enrol: Missing break in get_enrolled_users WS
2014-02-13 12:06:04 +08:00
Frederic Massart
e06d359917
MDL-43337 enrol: More tests for get_enrolled_users_with_capability
2014-02-13 12:06:04 +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
Mark Nelson
f1f4f4fd7b
MDL-40909 core_enrol: removed 'enrol' add_to_log calls
...
Before each of these calls a call to enrol_user() is made, which
triggers the event 'user_enrolment_created'. Nothing more is needed.
2014-01-27 19:52:55 -08:00
Mark Nelson
6324517209
MDL-40909 core_enrol: removed 'unenrol' add_to_log calls
...
Before each of these calls a call to unenrol_user() is made, which
triggers the event 'user_enrolment_deleted'. Nothing more is needed.
2014-01-27 19:52:55 -08:00
Marina Glancy
4a3fb71c4f
MDL-41436 Removing references to fields course.modinfo, sectioncache
...
Also add the field cacherev to the lists of default fields in course retrieval functions
2013-09-10 14:11:51 +10:00
Rajesh Taneja
bb78e249cd
MDL-39961 Events: Replace Legacy events - User
...
This change includes:
* Added user_updated event, replacing old event
* Added user_created event, replacing old event
* Added user_deleted event, replacing old event
* Added user_loggedout event, replacing old event
* Added user_enrolment_created event, replacing old event
* Added user_enrolment_deleted event, replacing old event
* Added user_enrolment_updated event, replacing old event
2013-09-02 16:10:05 +08:00
Dan Poltawski
631d9f661f
MDL-41191 enrol: unit tests for enrol_get_shared_courses
2013-08-15 11:50:08 +08:00
Marina Glancy
9be9b412b1
Merge branch 'wip-mdl-40126' of git://github.com/rajeshtaneja/moodle
2013-08-06 22:53:19 +10:00
Petr Škoda
8252b7c291
MDL-40901 standardise core test case class and file names
...
This finally allows us to type only the class name when executing individual core test cases.
2013-08-04 22:10:31 +02:00
Rajesh Taneja
be9bf94e4a
MDL-40126 Enrolments: Implemented two webservices to get enrolment instance info
...
1. core_enrol_get_course_enrolment_methods() which returns all enrolment method instances
which implement get_enrol_info()
2. enrol_self_get_instance_info() will return information about self enrolment instance.
2013-07-29 15:07:37 +08:00
David Monllao
3897608152
MDL-39635 behat: XPath cleanups
...
- Escaping steps arguments redirected to other steps
- Adding normalized-space() in all contains() assertions
- General xpaths review
- Convering provided xpath text strings to xpath literals
to avoid problems with arguments containing both single
quotes and double quotes
2013-07-19 10:02:36 +02:00
David Monllao
dedb973878
MDL-39635 behat: Replacing hardcoded language strings
...
Using get_string() instead.
2013-07-19 10:02:10 +02:00
Ankit Agarwal
1e63179285
MDL-39153 webservices: Provide alternative to passing contextids
...
As per our policy webservices should never have a required contextid, thuse providing a support for passing contextlevel and instanceid as parameters to the api
2013-06-18 14:15:54 +08:00
Ankit Agarwal
aac70ffc18
MDL-39152 webservices: Abstract context fetching
...
Since many apis in future will need to provide alternative method to fetch context, I have abstracted this bit into the core external_api class
2013-06-14 15:47:48 +08:00
Ankit Agarwal
235b5c680a
MDL-39152 phpunit: Move core_role_external_testcase() to a new file
...
It is not recommended to have multiple test classes in a single phpunit file
2013-06-14 11:50:25 +08:00
Ankit Agarwal
95a3bb4dc8
MDL-39152 phpunit: improve tests for assign_roles()
...
core_role_external::assign_roles() now support alternative paramaters instead of contextid. Test working of those. Also test the parameters validation a bit, since these are no longer automatically tested being optional now
2013-06-14 11:50:25 +08:00
Petr Škoda
31ac2aef26
MDL-39386 fix phpdocs packages in enrol
2013-04-27 13:41:32 +02:00
Dan Poltawski
fbd90ba191
Merge branch 'MDL-37410-master' of git://github.com/mouneyrac/moodle
2013-04-10 10:37:29 +08:00
David Monllao
f0e4cf5e31
MDL-38619 behat: Step definition to add enrolment methods to courses
2013-03-28 11:17:14 +08:00
Jerome Mouneyrac
909f27acf4
MDL-37410 External PHPunit test: used ->getDataGenerator()->enrol_user instead to manually enrol the user. + improve the unassignUserCapability to remove a capability assigned by getDataGenerator->enrol_users
2013-02-12 11:15:15 +08:00
Jerome Mouneyrac
fb695f6e3d
MDL-37354 clean return value for each externallib PHPUnit tests
2013-01-09 13:47:01 +08:00
Petr Škoda
05f6da14f7
MDL-33017 add new function for quickly finding out if user sees at least on course
...
This will be used in navigation.
2012-11-04 11:08:25 +13:00
Dan Poltawski
21d3bfb39a
MDL-31859 - fix more trailing whitespace
2012-09-26 14:44:42 +08:00
Paul Charsley
b6b6c7acb6
MDL-31859 added get_enrolled_users_with_capability web service function
2012-09-21 09:37:06 +12:00
Jerome Mouneyrac
566596abd7
MDL-34967 PHPunit test: enrol/externallib.php and enrol/manual/externallib.php
2012-09-04 12:26:21 +08:00