From 09e43f0a688d64516705229db088b49698d94ca8 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 22 May 2013 14:05:26 +0100 Subject: [PATCH] MDL-47494 ddimageortext: Fix failing unit tests. --- .../ddimageortext/tests/walkthrough_test.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/question/type/ddimageortext/tests/walkthrough_test.php b/question/type/ddimageortext/tests/walkthrough_test.php index ce7f431960f..95adfaaf57e 100644 --- a/question/type/ddimageortext/tests/walkthrough_test.php +++ b/question/type/ddimageortext/tests/walkthrough_test.php @@ -396,9 +396,9 @@ class qtype_ddimageortext_walkthrough_test extends qbehaviour_walkthrough_test_b $this->get_contains_hidden_expectation( $this->quba->get_field_prefix($this->slot) . 'p2', 2), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p3', ''), + $this->quba->get_field_prefix($this->slot) . 'p3', 0), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p4', ''), + $this->quba->get_field_prefix($this->slot) . 'p4', 0), $this->get_does_not_contain_correctness_expectation(), $this->get_does_not_contain_feedback_expectation()); @@ -506,9 +506,9 @@ class qtype_ddimageortext_walkthrough_test extends qbehaviour_walkthrough_test_b $this->get_contains_hidden_expectation( $this->quba->get_field_prefix($this->slot) . 'p2', 2), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p3', ''), + $this->quba->get_field_prefix($this->slot) . 'p3', 0), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p4', ''), + $this->quba->get_field_prefix($this->slot) . 'p4', 0), $this->get_contains_submit_button_expectation(true), $this->get_does_not_contain_try_again_button_expectation(), $this->get_does_not_contain_correctness_expectation(), @@ -560,9 +560,9 @@ class qtype_ddimageortext_walkthrough_test extends qbehaviour_walkthrough_test_b $this->get_contains_hidden_expectation( $this->quba->get_field_prefix($this->slot) . 'p1', 1), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p2', ''), + $this->quba->get_field_prefix($this->slot) . 'p2', 0), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p3', ''), + $this->quba->get_field_prefix($this->slot) . 'p3', 0), $this->get_contains_hidden_expectation( $this->quba->get_field_prefix($this->slot) . 'p4', 2), $this->get_contains_submit_button_expectation(true), @@ -786,13 +786,13 @@ class qtype_ddimageortext_walkthrough_test extends qbehaviour_walkthrough_test_b $this->get_contains_drag_image_home_expectation(1, 1, 2), $this->get_contains_drag_image_home_expectation(2, 2, 2), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p1', ''), + $this->quba->get_field_prefix($this->slot) . 'p1', 0), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p2', ''), + $this->quba->get_field_prefix($this->slot) . 'p2', 0), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p3', ''), + $this->quba->get_field_prefix($this->slot) . 'p3', 0), $this->get_contains_hidden_expectation( - $this->quba->get_field_prefix($this->slot) . 'p4', ''), + $this->quba->get_field_prefix($this->slot) . 'p4', 0), $this->get_contains_submit_button_expectation(true), $this->get_does_not_contain_feedback_expectation(), $this->get_tries_remaining_expectation(2),