Línea 32... |
Línea 32... |
32 |
* @package core_question
|
32 |
* @package core_question
|
33 |
* @category test
|
33 |
* @category test
|
34 |
* @copyright 2009 The Open University
|
34 |
* @copyright 2009 The Open University
|
35 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
35 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
36 |
*/
|
36 |
*/
|
37 |
class questionattemptstep_db_test extends \data_loading_method_test_base {
|
37 |
final class questionattemptstep_db_test extends \data_loading_method_test_base {
|
38 |
public function test_load_with_data(): void {
|
38 |
public function test_load_with_data(): void {
|
39 |
$records = new question_test_recordset(array(
|
39 |
$records = new question_test_recordset(array(
|
40 |
array('attemptstepid', 'questionattemptid', 'sequencenumber', 'state', 'fraction', 'timecreated', 'userid', 'name', 'value', 'qtype', 'contextid'),
|
40 |
array('attemptstepid', 'questionattemptid', 'sequencenumber', 'state', 'fraction', 'timecreated', 'userid', 'name', 'value', 'qtype', 'contextid'),
|
41 |
array( 1, 1, 0, 'todo', null, 1256228502, 13, null, null, 'description', 1),
|
41 |
array( 1, 1, 0, 'todo', null, 1256228502, 13, null, null, 'description', 1),
|
42 |
array( 2, 1, 1, 'complete', null, 1256228505, 13, 'x', 'a', 'description', 1),
|
42 |
array( 2, 1, 1, 'complete', null, 1256228505, 13, 'x', 'a', 'description', 1),
|