MDL-38538 question unit tests: improve things a bit.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 28 Mar 2013 16:05:34 +0000 (16:05 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 28 Mar 2013 16:05:34 +0000 (16:05 +0000)
commiteca230b52197bec87bee059d15651a3886dd62f8
tree9efffe6a6ddc7d49f009fdbf0d786568f77e4f07
parentd8201d49d8e0f18c3c836d9d4813edf2fb8728ee
MDL-38538 question unit tests: improve things a bit.

1. Split the question_attempt tests into one class per file.
2. Imporve the API to give tests more control, and to test more of the
   important code. Some of this is not used here, but it is about to be.
question/engine/tests/helpers.php
question/engine/tests/questionattempt_db_test.php [new file with mode: 0644]
question/engine/tests/questionattempt_test.php
question/engine/tests/questionattempt_with_steps_test.php [new file with mode: 0644]
question/engine/tests/unitofwork_test.php
question/type/match/tests/walkthrough_test.php
question/type/multianswer/tests/walkthrough_test.php
question/type/numerical/tests/walkthrough_test.php
question/type/shortanswer/tests/helper.php
question/type/upgrade.txt