Dan Poltawski
265ddbf30c
MDL-51569 mod_choice: Fix use of hardcoded ids
...
(Previous approach of making up ids longer works now we are validating
them..)
2015-11-06 08:09:47 +00:00
John Okely
531bcb13f6
MDL-51569 mod_choice: Prevent users from updating choices with curl
...
And fix unit tests.
2015-11-06 14:52:26 +08:00
Damyon Wiese
0bca129775
MDL-51569 mod_choice: Validate the submitted optionid
...
Make sure any submitted choice options actually belong to the current choice
module.
2015-11-05 10:48:40 +00:00
Juan Leyva
3dd0ac559f
MDL-51569 mod_choice: Check choice availability prior to do any action
2015-11-04 11:08:32 +00:00
Juan Leyva
4b93c3e342
MDL-51566 mod_choice: New WS mod_choice_delete_choice_responses
2015-10-07 13:58:51 +02:00
Juan Leyva
f07a2bb09b
MDL-50132 mod_choice: New WS mod_choice_get_choices_by_courses
2015-09-21 09:27:42 +02:00
David Monllao
742548e251
Merge branch 'wip-mdl-51101' of git://github.com/rajeshtaneja/moodle
2015-09-14 16:18:01 +08:00
Rajesh Taneja
1a5a476b03
MDL-51101 behat: Fixed wrong hover step usage
...
Hover step was being mis-used for checking activity completion
This is replaced with proper step which check for img element
2015-09-10 14:46:12 +08:00
Juan Leyva
dffb87edf6
MDL-50944 mod_choice: Unit tests for external functions
2015-09-02 11:29:38 +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
Damyon Wiese
221210e9b2
MDL-49412 Behat: Fix behat tests for all of @mod
...
This is after the navigation changes for 2.9.
Part of MDL-45774.
2015-04-10 17:18:23 +08:00
Tony Butler
74cc07bedf
MDL-43770 mod_choice: Add behat scenarios for 'include inactive' option
2015-03-20 09:55:16 +00:00
Rajesh Taneja
d7fec593f3
MDL-49402 behat: Fixed feature file with same scenario name
...
1. We should not have same scanrio name in 1 feature file
As it doesn't explain what is being tested. So modified.
2. Removed empty line, to keep it consistnet with other features
2015-03-06 11:47:17 +08:00
Dan Poltawski
86e5b0a707
Merge branch 'MDL-49220-master' of https://github.com/lucisgit/moodle
2015-02-24 16:54:58 +00:00
Tony Butler
f1399fb8e7
MDL-49220 mod_choice: Add behat scenario to test choice preview option
2015-02-24 16:25:18 +00:00
Dan Poltawski
6856894efe
Merge branch 'wip_MDL-49184_m29_choice' of https://github.com/skodak/moodle
2015-02-24 10:43:15 +00:00
Petr Skoda
5fb2315a8b
MDL-49184 choice: fix block actions
...
The problems was that blocks editing breaks if you redirect
after if (data_submitted()) - all form actions must make sure
it is really their form, otherwise they may hijack the post from
block actions.
Note that this is not a problem for mforms, only legacy forms
are affected.
# Conflicts:
# mod/choice/view.php
2015-02-17 17:00:15 +13:00
Stephen Bourget
c04b66a564
MDL-34375 Choice: Display choice on 'my home'
2015-02-13 14:19:55 -05:00
David Mudrák
6887e2e53e
MDL-48035 Fix Behat tests regressions after merging en_fix strings
2014-11-06 10:54:27 +01:00
Sam Hemelryk
cbb1677cb9
MDL-3034 mod_choice: minor tidy up
2014-09-25 14:03:52 +12:00
Michael Aherne
54bdf1d406
MDL-3034 choice Support multiple answers
2014-09-25 11:33:55 +12: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
759b323e0e
MDL-43236 behat: Updating references to deprecated methods
2014-03-07 16:05:21 +08: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
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
Ankit Agarwal
1f2aeda91e
MDL-43044 events: Add unit tests
2013-12-06 16:08:03 +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
Dan Poltawski
0f136c1a5b
Merge branch 'MDL-42290-master' of git://github.com/ankitagarwal/moodle
2013-10-23 14:36:07 +08:00
Ankit Agarwal
79b40dea57
MDL-42290 choice: Add a automated test to verify limiting number of responses works
2013-10-16 15:34:26 +08:00
Marina Glancy
4ff520d800
MDL-42288 behat: Allowing to change choice response
...
Automate MDLQA-46 - A teacher can choose whether to allow students to change their choice response
2013-10-14 10:46:24 +11:00
Adrian Greeve
8a94144332
MDL-40049 mod_choice: Replaced old add_to_log calls with event triggers.
...
Also added a generator for unit tests.
2013-10-01 10:36:13 +08: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
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
David Monllao
550d842e3c
MDL-39232 behat Normalize feature tags according to component names
2013-04-30 11:54:47 +08:00
Eloy Lafuente (stronk7)
e73ac7692e
Merge branch 'MDL-38433_master' of git://github.com/dmonllao/moodle
2013-03-19 23:27:50 +01:00
David Monllao
6b6303d9a1
MDL-38411 behat: New test
2013-03-19 16:44:55 +08:00
David Monllao
b7d6c48589
MDL-38433 behat: New tests
...
According to MDLQA-48
2013-03-19 16:44:20 +08:00
David Monllao
4b61cc91ac
MDL-38410 behat: Adding basic step and test for mod_choice
2013-03-19 16:42:59 +08:00