Advertisement
sarjona

question/bank/exporttoxml/tests/helper_test.php - COVERS

Sep 1st, 2021
1,366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.29 KB | None | 0 0
  1. --- a/question/bank/exporttoxml/tests/helper_test.php
  2. +++ b/question/bank/exporttoxml/tests/helper_test.php
  3. @@ -14,7 +14,7 @@
  4.  // You should have received a copy of the GNU General Public License
  5.  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  6.  
  7. -namespace qbank_exportoxml;
  8. +namespace qbank_exporttoxml;
  9.  
  10.  use context_course;
  11.  use context_module;
  12. @@ -28,13 +28,14 @@ use question_bank;
  13.   * @copyright  2021 Catalyst IT Australia Pty Ltd
  14.   * @author     Safat Shahin <safatshahin@catalyst-au.net>
  15.   * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  16. + * @coversDefaultClass \qbank_exporttoxml\helper
  17.   */
  18.  class helper_test extends \advanced_testcase {
  19.  
  20.      /**
  21.       * Test the export single question url.
  22.       *
  23. -     * @covers helper::question_get_export_single_question_url
  24. +     * @covers ::question_get_export_single_question_url
  25.       */
  26.      public function test_question_get_export_single_question_url() {
  27.          $this->resetAfterTest();
  28. @@ -56,17 +57,17 @@ class helper_test extends \advanced_testcase {
  29.          // Verify some URLs.
  30.          $this->assertEquals(new moodle_url('/question/bank/exporttoxml/exportone.php',
  31.                  ['id' => $courseq->id, 'courseid' => $course->id, 'sesskey' => sesskey()]),
  32. -                \qbank_exporttoxml\helper::question_get_export_single_question_url(
  33. +                helper::question_get_export_single_question_url(
  34.                          question_bank::load_question_data($courseq->id)));
  35.  
  36.          $this->assertEquals(new moodle_url('/question/bank/exporttoxml/exportone.php',
  37.                  ['id' => $quizq->id, 'cmid' => $quiz->cmid, 'sesskey' => sesskey()]),
  38. -                \qbank_exporttoxml\helper::question_get_export_single_question_url(
  39. +                helper::question_get_export_single_question_url(
  40.                          question_bank::load_question($quizq->id)));
  41.  
  42.          $this->assertEquals(new moodle_url('/question/bank/exporttoxml/exportone.php',
  43.                  ['id' => $systemq->id, 'courseid' => SITEID, 'sesskey' => sesskey()]),
  44. -                \qbank_exporttoxml\helper::question_get_export_single_question_url(
  45. +                helper::question_get_export_single_question_url(
  46.                          question_bank::load_question($systemq->id)));
  47.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement