Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70732

ExpectationException() constructor missing required 'driver' param

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MDL-70732-master
    • Hide
      1. Download attached mdl_70732.feature file and save it in /lib/tests/behat/ directory.
      2. Download attached other-gd-logo.png and save in /lib/tests/fixtures/ directory.
      3. Run @mdl_70732 behat tests:

        php admin/tool/behat/cli/run.php --tags="mdl_70732"

        If you use mdk, you can use the following command to run these behat tests instead:

        mdk behat -r -t mdl_70732

      4. Confirm "Test get_category_id." fails and throws "There is no category in the database with the idnumber 'OTHER'" error.
      5. Confirm "Test get_course_id." fails and throws "There is no course in the database with the idnumber 'OTHER'" error.
      6. Confirm "Test the_image_at_should_be_identical_to." fails and throws "Image is not identical to the fixture." error.
      7. Confirm "Test i_open_the_add_to_quiz_menu_for." fails and throws "The I open the add to quiz menu step must specify either 'Page N' or 'last'." error.
      Show
      Download attached mdl_70732.feature file and save it in /lib/tests/behat/ directory. Download attached other-gd-logo.png and save in /lib/tests/fixtures/ directory. Run @mdl_70732 behat tests: php admin/tool/behat/cli/run.php --tags="mdl_70732" If you use mdk, you can use the following command to run these behat tests instead: mdk behat -r -t mdl_70732 Confirm "Test get_category_id." fails and throws " There is no category in the database with the idnumber 'OTHER' " error. Confirm "Test get_course_id." fails and throws " There is no course in the database with the idnumber 'OTHER' " error. Confirm "Test the_image_at_should_be_identical_to." fails and throws " Image is not identical to the fixture. " error. Confirm "Test i_open_the_add_to_quiz_menu_for." fails and throws " The I open the add to quiz menu step must specify either 'Page N' or 'last'. " error.
    • Moppies Kanban

      Working on MDL-69880 we realized in some cases ExpectationException constructor is missing the second parameter ('driver') in the_image_at_should_be_identical_to function. So the error shown by behat is related to that second parameter and not the reason why the exception has been thrown.

      There are several cases in the code where ExpectationException constructor is missing second parameter.

       

       

        1. mdl_70732.feature
          3 kB
          Amaia Anabitarte
        2. MDL-70732.PNG
          101 kB
          Gladys Basiana
        3. other-gd-logo.png
          3 kB
          Amaia Anabitarte

            amaia Amaia Anabitarte
            amaia Amaia Anabitarte
            Simey Lameze Simey Lameze
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 50 minutes
                1d 50m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.