Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/question/bank/exporttoxml/tests/helper_test.php
- +++ b/question/bank/exporttoxml/tests/helper_test.php
- @@ -14,7 +14,7 @@
- // You should have received a copy of the GNU General Public License
- // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
- -namespace qbank_exportoxml;
- +namespace qbank_exporttoxml;
- use context_course;
- use context_module;
- @@ -28,13 +28,14 @@ use question_bank;
- * @copyright 2021 Catalyst IT Australia Pty Ltd
- * @author Safat Shahin <safatshahin@catalyst-au.net>
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- + * @coversDefaultClass \qbank_exporttoxml\helper
- */
- class helper_test extends \advanced_testcase {
- /**
- * Test the export single question url.
- *
- - * @covers helper::question_get_export_single_question_url
- + * @covers ::question_get_export_single_question_url
- */
- public function test_question_get_export_single_question_url() {
- $this->resetAfterTest();
- @@ -56,17 +57,17 @@ class helper_test extends \advanced_testcase {
- // Verify some URLs.
- $this->assertEquals(new moodle_url('/question/bank/exporttoxml/exportone.php',
- ['id' => $courseq->id, 'courseid' => $course->id, 'sesskey' => sesskey()]),
- - \qbank_exporttoxml\helper::question_get_export_single_question_url(
- + helper::question_get_export_single_question_url(
- question_bank::load_question_data($courseq->id)));
- $this->assertEquals(new moodle_url('/question/bank/exporttoxml/exportone.php',
- ['id' => $quizq->id, 'cmid' => $quiz->cmid, 'sesskey' => sesskey()]),
- - \qbank_exporttoxml\helper::question_get_export_single_question_url(
- + helper::question_get_export_single_question_url(
- question_bank::load_question($quizq->id)));
- $this->assertEquals(new moodle_url('/question/bank/exporttoxml/exportone.php',
- ['id' => $systemq->id, 'courseid' => SITEID, 'sesskey' => sesskey()]),
- - \qbank_exporttoxml\helper::question_get_export_single_question_url(
- + helper::question_get_export_single_question_url(
- question_bank::load_question($systemq->id)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement