MDL-47494 ddmarker: Improve the drag-drop question Behat tests.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 13 Feb 2015 17:41:21 +0000 (17:41 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 13 Feb 2015 17:41:21 +0000 (17:41 +0000)
commita366c8b9509cc9eccbeaf7a2b2f9789e68c536f5
treeb80c57e4ecdd7601dfae2e763240a776cc034697
parent2cb2d3b6b4db3a8b974278d8a697eaf8a8b4274d
MDL-47494 ddmarker: Improve the drag-drop question Behat tests.

* Added tests for previewing the question, to make sure it works when
attempted.
* Added Moodle XML export tests.
* Reorganised the tests to follow the 'Test one thing per scenario' best
practice.

This commit requires MDL-49154 to work.
question/type/ddmarker/tests/behat/add.feature [new file with mode: 0644]
question/type/ddmarker/tests/behat/backup_and_restore.feature [new file with mode: 0644]
question/type/ddmarker/tests/behat/basic_test.feature [deleted file]
question/type/ddmarker/tests/behat/behat_qtype_ddmarker.php [new file with mode: 0644]
question/type/ddmarker/tests/behat/edit.feature [new file with mode: 0644]
question/type/ddmarker/tests/behat/export.feature [new file with mode: 0644]
question/type/ddmarker/tests/behat/import.feature [moved from question/type/ddmarker/tests/behat/import_test.feature with 66% similarity]
question/type/ddmarker/tests/behat/preview.feature [new file with mode: 0644]
question/type/ddmarker/tests/fixtures/testquestion.moodle.xml
question/type/ddmarker/tests/helper.php