Moodle  2.2.1
http://www.collinsharper.com
qbehaviour_walkthrough_test_base Class Reference
Inheritance diagram for qbehaviour_walkthrough_test_base:
Collaboration diagram for qbehaviour_walkthrough_test_base:

Public Member Functions

 setUp ()
 tearDown ()

Protected Member Functions

 start_attempt_at_question ($question, $preferredbehaviour, $maxmark=null, $variant=1)
 process_submission ($data)
 manual_grade ($comment, $mark)
 check_current_state ($state)
 check_current_mark ($mark)
 check_current_output ()
 get_question_attempt ()
 get_step_count ()
 check_step_count ($expectednumsteps)
 get_step ($stepnum)
 get_contains_question_text_expectation ($question)
 get_contains_general_feedback_expectation ($question)
 get_does_not_contain_correctness_expectation ()
 get_contains_correct_expectation ()
 get_contains_partcorrect_expectation ()
 get_contains_incorrect_expectation ()
 get_contains_standard_correct_combined_feedback_expectation ()
 get_contains_standard_partiallycorrect_combined_feedback_expectation ()
 get_contains_standard_incorrect_combined_feedback_expectation ()
 get_does_not_contain_feedback_expectation ()
 get_does_not_contain_num_parts_correct ()
 get_contains_num_parts_correct ($num)
 get_does_not_contain_specific_feedback_expectation ()
 get_contains_validation_error_expectation ()
 get_does_not_contain_validation_error_expectation ()
 get_contains_mark_summary ($mark)
 get_contains_marked_out_of_summary ()
 get_does_not_contain_mark_summary ()
 get_contains_checkbox_expectation ($baseattr, $enabled, $checked)
 get_contains_mc_checkbox_expectation ($index, $enabled=null, $checked=null)
 get_contains_radio_expectation ($baseattr, $enabled, $checked)
 get_contains_mc_radio_expectation ($index, $enabled=null, $checked=null)
 get_contains_hidden_expectation ($name, $value=null)
 get_does_not_contain_hidden_expectation ($name, $value=null)
 get_contains_tf_true_radio_expectation ($enabled=null, $checked=null)
 get_contains_tf_false_radio_expectation ($enabled=null, $checked=null)
 get_contains_cbm_radio_expectation ($certainty, $enabled=null, $checked=null)
 get_contains_button_expectation ($name, $value=null, $enabled=null)
 get_contains_submit_button_expectation ($enabled=null)
 get_tries_remaining_expectation ($n)
 get_invalid_answer_expectation ()
 get_contains_try_again_button_expectation ($enabled=null)
 get_does_not_contain_try_again_button_expectation ()
 get_contains_select_expectation ($name, $choices, $selected=null, $enabled=null)
 get_mc_right_answer_index ($mc)
 get_no_hint_visible_expectation ()
 get_contains_hint_expectation ($hinttext)

Protected Attributes

 $displayoptions
 $quba
 $slot

Detailed Description

Helper base class for tests that walk a question through a sequents of interactions under the control of a particular behaviour.

Definition at line 430 of file helpers.php.


Member Function Documentation

check_current_mark ( mark) [protected]

Definition at line 468 of file helpers.php.

Here is the call graph for this function:

check_current_output ( ) [protected]
Parameters:
$conditionone or more Expectations. (users varargs).

Definition at line 485 of file helpers.php.

check_current_state ( state) [protected]

Definition at line 463 of file helpers.php.

Here is the call graph for this function:

check_step_count ( expectednumsteps) [protected]

Definition at line 500 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_button_expectation ( name,
value = null,
enabled = null 
) [protected]

Definition at line 682 of file helpers.php.

Here is the caller graph for this function:

get_contains_cbm_radio_expectation ( certainty,
enabled = null,
checked = null 
) [protected]

Definition at line 674 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_checkbox_expectation ( baseattr,
enabled,
checked 
) [protected]

Definition at line 595 of file helpers.php.

Here is the caller graph for this function:

Definition at line 520 of file helpers.php.

Here is the caller graph for this function:

get_contains_general_feedback_expectation ( question) [protected]

Definition at line 512 of file helpers.php.

Here is the caller graph for this function:

get_contains_hidden_expectation ( name,
value = null 
) [protected]

Definition at line 644 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_hint_expectation ( hinttext) [protected]

Definition at line 753 of file helpers.php.

Here is the caller graph for this function:

Definition at line 529 of file helpers.php.

Here is the caller graph for this function:

get_contains_mark_summary ( mark) [protected]

Definition at line 575 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 584 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_mc_checkbox_expectation ( index,
enabled = null,
checked = null 
) [protected]

Definition at line 612 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_mc_radio_expectation ( index,
enabled = null,
checked = null 
) [protected]

Definition at line 637 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_num_parts_correct ( num) [protected]

Definition at line 556 of file helpers.php.

Here is the caller graph for this function:

Definition at line 524 of file helpers.php.

Here is the caller graph for this function:

get_contains_question_text_expectation ( question) [protected]

Definition at line 508 of file helpers.php.

Here is the caller graph for this function:

get_contains_radio_expectation ( baseattr,
enabled,
checked 
) [protected]

Definition at line 620 of file helpers.php.

Here is the caller graph for this function:

get_contains_select_expectation ( name,
choices,
selected = null,
enabled = null 
) [protected]

Definition at line 733 of file helpers.php.

Here is the caller graph for this function:

Definition at line 533 of file helpers.php.

Here is the caller graph for this function:

Definition at line 543 of file helpers.php.

Here is the caller graph for this function:

Definition at line 538 of file helpers.php.

Here is the caller graph for this function:

get_contains_submit_button_expectation ( enabled = null) [protected]

Definition at line 699 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_tf_false_radio_expectation ( enabled = null,
checked = null 
) [protected]

Definition at line 667 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_tf_true_radio_expectation ( enabled = null,
checked = null 
) [protected]

Definition at line 660 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contains_try_again_button_expectation ( enabled = null) [protected]

Definition at line 714 of file helpers.php.

Here is the caller graph for this function:

Definition at line 567 of file helpers.php.

Here is the caller graph for this function:

Definition at line 516 of file helpers.php.

Here is the caller graph for this function:

Definition at line 548 of file helpers.php.

get_does_not_contain_hidden_expectation ( name,
value = null 
) [protected]

Definition at line 652 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 591 of file helpers.php.

Definition at line 552 of file helpers.php.

Here is the caller graph for this function:

Definition at line 563 of file helpers.php.

Here is the caller graph for this function:

Definition at line 728 of file helpers.php.

Here is the caller graph for this function:

Definition at line 571 of file helpers.php.

Here is the caller graph for this function:

Definition at line 709 of file helpers.php.

Here is the caller graph for this function:

get_mc_right_answer_index ( mc) [protected]

Definition at line 739 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 749 of file helpers.php.

Here is the caller graph for this function:

get_question_attempt ( ) [protected]

Definition at line 492 of file helpers.php.

Here is the caller graph for this function:

get_step ( stepnum) [protected]

Definition at line 504 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_step_count ( ) [protected]

Definition at line 496 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_tries_remaining_expectation ( n) [protected]

Definition at line 704 of file helpers.php.

Here is the caller graph for this function:

manual_grade ( comment,
mark 
) [protected]

Definition at line 459 of file helpers.php.

Here is the caller graph for this function:

process_submission ( data) [protected]

Definition at line 455 of file helpers.php.

setUp ( )

Definition at line 438 of file helpers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

start_attempt_at_question ( question,
preferredbehaviour,
maxmark = null,
variant = 1 
) [protected]

Definition at line 449 of file helpers.php.

tearDown ( )

Definition at line 444 of file helpers.php.


Field Documentation

$displayoptions [protected]

Definition at line 432 of file helpers.php.

$quba [protected]

Definition at line 434 of file helpers.php.

$slot [protected]

Definition at line 436 of file helpers.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations