Skip to content

Commit

Permalink
MDL-20636 local_qeupgradehelper use a textarea in extracttestcase for…
Browse files Browse the repository at this point in the history
… easier copy/paste.
  • Loading branch information
timhunt committed May 19, 2011
1 parent 2db6fba commit c35bf0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local/qeupgradehelper/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ function local_qeupgradehelper_generate_unit_test($questionsessionid, $namesuffi

$attempt->needsupgradetonewqe = 1;

echo "<pre>
echo '<textarea readonly="readonly" rows="80" cols="120" >' . "
public function test_{$question->qtype}_{$quiz->preferredbehaviour}_{$namesuffix}() {
";
local_qeupgradehelper_display_convert_attempt_input($quiz, $attempt,
Expand Down Expand Up @@ -528,7 +528,7 @@ public function test_{$question->qtype}_{$quiz->preferredbehaviour}_{$namesuffix
$this->assertEqual($expectedqa, $qa);
}
</pre>';
</textarea>';
}

function local_qeupgradehelper_format_var($name, $var) {
Expand Down

0 comments on commit c35bf0e

Please sign in to comment.