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
David Monllao
333db2e9b9
MDL-42625 behat: Editing .feature files
2013-12-06 12:13:39 +08:00
Marina Glancy
6dfd8325f0
MDL-42731 behat: load 'Site administration' when expanding node in non-javascript mode
2013-12-02 17:44:32 +11:00
David Monllao
047a8800f4
MDL-40975 course: Adapt behat tests to the new course editing interface
2013-11-06 11:41:00 +08:00
Damyon Wiese
d04bea30da
Merge branch 'wip-MDL-42400-master' of git://github.com/marinaglancy/moodle
2013-11-04 13:11:42 +08:00
Marina Glancy
b6affde2cb
MDL-42400 generator: Add function testing_module_generator::create_content()
...
also implement it for mod_book and mod_forum to call existing create_page, create_discussion/post functions
2013-10-26 14:00:24 +11:00
Marina Glancy
7fbe33fcf1
MDL-42400 generator: module generators call add_moduleinfo instead of direct inserts
2013-10-26 14:00:23 +11:00
Rajesh Taneja
bafcd3f17a
MDL-41811 navigation: Load site admin navigation
...
Go to notification page before following links within site admin
navigation, ensuring site admin navigation is loaded
With no js, test should follow site admin link and not expand it.
2013-10-21 14:17:55 +08:00
Damyon Wiese
869dd1fc6c
Merge branch 'MDL-29663_alt' of https://github.com/merrill-oakland/moodle
2013-10-09 09:39:09 +08:00
Eric Merrill
bd8f5d459d
MDL-29663 forum: Replace constant FORUM_TRACKING_ON with FORUM_TRACKING_FORCED
...
Commit for MDL-29663 that renames the FORUM_TRACKING_ON constant
to FORUM_TRACKING_FORCED to allow easier and more consistant reading.
FORUM_TRACKING_ON retained but marked depreciated.
2013-10-08 08:04:55 -04:00
Eric Merrill
20e6782f10
MDL-29663 forum: Option to allow Forced for read tracking.
...
Converts the use of Read Tracking On to Forced. Adds new admin setting
forum_allowforcedreadtracking. If set, Forced will be available when
adding or editing forums. In this state the forced forum overrides the
user preference of off.
With forum_allowforcedreadtracking not set (default) behavior is the
same as now, except forums previously set in the On state are treated
as Optional.
The side effect of forum_allowforcedreadtracking being on, is that users
cannot speed up the loading of course pages with lots of forums by
setting their personal forum read tracking option to off.
2013-10-08 08:03:54 -04:00
David Monllao
8b30d05557
MDL-42013 behat: Fixing related tests
...
We had no false positives because of this
issue, but some checking have been restricted
to specific DOM parts.
2013-10-04 14:38:11 +08:00
David Monllao
93a8bc8283
MDL-41568 lang: Fix behat features after changes
2013-09-04 15:16:59 +08: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
72c2c0bb09
MDL-41191 add more test data to trigger duplicate course records
2013-08-21 14:17:12 +08:00
Sam Hemelryk
f79f3c00f8
Revert "MDL-41258 Forum: Add additional unit tests for forum digest settings"
...
This reverts commit 0ef6f6860d
.
2013-08-21 11:03:35 +12:00
Sam Hemelryk
c5bba2fc2d
Merge branch 'MDL-41258-m' of git://github.com/andrewnicols/moodle
2013-08-21 09:59:19 +12:00
Damyon Wiese
e2f36a71a8
Merge branch 'MDL-41191-master' of git://github.com/danpoltawski/moodle
2013-08-20 16:13:55 +08:00
Andrew Nicols
0ef6f6860d
MDL-41258 Forum: Add additional unit tests for forum digest settings
2013-08-18 00:03:06 +01:00
Andrew Nicols
0462b6a1a5
MDL-4908 Forum: Basic maildigest setting tests
2013-08-15 17:20:49 +12:00
Dan Poltawski
de31668790
MDL-41191 forum: unit tests for forum_get_courses_user_posted_in
2013-08-15 11:50:08 +08:00
Frederic Massart
62b3b99784
MDL-39954 mod_forum: Replacing old-style events_trigger
2013-08-12 17:35:29 +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
David Monllao
d0a9a29bd0
MDL-40246 mod_forum: Changing scenario to non-JS
...
Also replacing hardcoded waits for a
wait to be redirected.
2013-06-27 14:24:00 +08:00
David Monllao
5d7b6307b1
MDL-39586 behat: Closed list of stackeholders
2013-05-09 18:38:13 +08:00
David Monllao
4d40089d88
MDL-39348 behat: Changing to correct activity names
2013-05-03 10:16:44 +08:00
Dan Poltawski
142fa8c75d
Merge branch 'MDL-39438_master' of git://github.com/dmonllao/moodle
2013-05-01 08:32:30 +01:00
David Monllao
5bc7cd922b
MDL-39438 behat: Updating tests
...
According to MDL-38415 changes.
2013-05-01 13:39:06 +08:00
David Monllao
550d842e3c
MDL-39232 behat Normalize feature tags according to component names
2013-04-30 11:54:47 +08:00
Dan Poltawski
fbd90ba191
Merge branch 'MDL-37410-master' of git://github.com/mouneyrac/moodle
2013-04-10 10:37:29 +08:00
Damyon Wiese
b38f932abf
Merge branch 'MDL-38823_master-fix' of git://github.com/dmonllao/moodle
2013-04-04 10:34:50 +08:00
Damyon Wiese
b64a05b996
MDL-26644 Course - Remove completion tracking begins on enrolment setting from behat.
2013-04-03 15:30:49 +08:00
David Monllao
7a6204ce1d
MDL-38823 behat: Fixing related scenarios
2013-04-03 13:56:31 +08:00
Eloy Lafuente (stronk7)
12879418e9
Merge branch 'MDL-38823_master' of git://github.com/dmonllao/moodle
...
Conflicts:
mod/forum/tests/behat/behat_mod_forum.php
2013-04-02 01:47:40 +02:00
Eloy Lafuente (stronk7)
0f8fd3a7eb
Merge branch 'MDL-38477_master' of git://github.com/dmonllao/moodle
2013-04-02 01:06:18 +02:00
Eloy Lafuente (stronk7)
2bb24f16e0
Merge branch 'MDL-38476_master' of git://github.com/dmonllao/moodle
2013-04-02 01:06:05 +02:00
Eloy Lafuente (stronk7)
55a2081d28
Merge branch 'MDL-38475_master' of git://github.com/dmonllao/moodle
2013-04-02 01:04:44 +02:00
Eloy Lafuente (stronk7)
c1bccc8ef5
Merge branch 'MDL-38439_master' of git://github.com/dmonllao/moodle
2013-04-02 01:04:31 +02:00
Eloy Lafuente (stronk7)
9f0700fb6c
Merge branch 'MDL-38437_master' of git://github.com/dmonllao/moodle
2013-04-02 01:03:26 +02:00
David Monllao
be0e1825d3
MDL-38823 behat: New test
...
According to MDLQA-521, a teacher can set a certain
number of discussions as a completion condition for
a forum.
2013-04-01 17:52:46 +08:00
David Monllao
125765ed18
MDL-38437 behat: Behat feature for mod_forum
...
Basic add an activity, MDLQA-2 (students
can edit or delete their forum posts within
a set time limit).
2013-04-01 16:27:16 +08:00
David Monllao
74508a5ddb
MDL-38437 behat: Step definition to add a discussion
2013-04-01 16:27:09 +08:00
David Monllao
2d9cbe8807
MDL-38477 behat: New test
...
According to MDLQA-16, teachers can edit
or delete any forum post.
2013-03-27 16:51:01 +08:00
David Monllao
22d56e46f1
MDL-38476 behat: New test
...
According to MDLQA-9, in a single
simple discussion forum only teachers
can start discussions.
2013-03-27 16:49:59 +08:00
David Monllao
a394e57849
MDL-38475 behat: New test
...
According to MDLQA-5, students can choose
from 4 discussion display options and their
choice is remembered.
2013-03-27 16:47:56 +08:00
David Monllao
68834d4a0d
MDL-38475 behat: Step definition to reply a discussion
2013-03-27 16:47:55 +08:00
David Monllao
9449cf8e11
MDL-38439 behat: New test
...
According to MDLQA-3, a teacher can
set one of 3 possible options for
tracking read forum posts.
2013-03-27 16:46:41 +08:00
David Monllao
e6cb6aed64
MDL-38437 behat: Behat feature for mod_forum
...
Basic add an activity, MDLQA-2 (students
can edit or delete their forum posts within
a set time limit).
2013-03-27 16:45:01 +08:00
David Monllao
279d86943b
MDL-38437 behat: Step definition to add a discussion
2013-03-27 16:45:01 +08:00