~ubuntu-branches/ubuntu/saucy/moodle/saucy

« back to all changes in this revision

Viewing changes to question/behaviour/deferredcbm/tests/walkthrough_test.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.17) (3.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20130909152235-f5g7gphaseb84qeu
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
        // Verify.
49
49
        $this->check_current_state(question_state::$todo);
 
50
        $this->check_output_contains_lang_string('notyetanswered', 'question');
50
51
        $this->check_current_mark(null);
51
52
        $this->check_current_output(
52
53
                $this->get_contains_question_text_expectation($tf),
62
63
 
63
64
        // Verify.
64
65
        $this->check_current_state(question_state::$complete);
 
66
        $this->check_output_contains_lang_string('answersaved', 'question');
65
67
        $this->check_current_mark(null);
66
68
        $this->check_current_output(
67
69
                $this->get_contains_tf_true_radio_expectation(true, true),
122
124
 
123
125
        // Verify.
124
126
        $this->check_current_state(question_state::$todo);
 
127
        $this->check_output_contains_lang_string('notyetanswered', 'question');
125
128
        $this->check_current_mark(null);
126
129
        $this->check_current_output(
127
130
                $this->get_does_not_contain_correctness_expectation(),
133
136
 
134
137
        // Verify.
135
138
        $this->check_current_state(question_state::$complete);
 
139
        $this->check_output_contains_lang_string('answersaved', 'question');
136
140
        $this->check_current_mark(null);
137
141
        $this->check_current_output($this->get_does_not_contain_correctness_expectation(),
138
142
                $this->get_contains_cbm_radio_expectation(1, true, true),
159
163
 
160
164
        // Verify.
161
165
        $this->check_current_state(question_state::$todo);
 
166
        $this->check_output_contains_lang_string('notyetanswered', 'question');
162
167
        $this->check_current_mark(null);
163
168
        $this->check_current_output(
164
169
                $this->get_does_not_contain_correctness_expectation(),
219
224
        $this->quba->start_question_based_on($this->slot, $oldqa);
220
225
 
221
226
        // Verify.
222
 
        $this->check_current_state(question_state::$todo);
 
227
        $this->check_current_state(question_state::$complete);
 
228
        $this->check_output_contains_lang_string('notchanged', 'question');
223
229
        $this->check_current_mark(null);
224
230
        $this->check_current_output(
225
231
                $this->get_contains_mc_radio_expectation($wrongindex, true, true),
255
261
 
256
262
        // Verify.
257
263
        $this->check_current_state(question_state::$todo);
 
264
        $this->check_output_contains_lang_string('notyetanswered', 'question');
258
265
        $this->check_current_mark(null);
259
266
        $this->check_current_output(
260
267
                $this->get_does_not_contain_correctness_expectation(),