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

ExpectationException() constructor missing required 'driver' param

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-70732-310
    • Pull 3.11 Branch:
      MDL-70732-311
    • Pull Master Branch:
      MDL-70732-master
    • Sprint:
      Moppies Kanban

      Description

      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.

       

       

        Attachments

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

          Activity

            People

            Assignee:
            amaia Amaia Anabitarte
            Reporter:
            amaia Amaia Anabitarte
            Peer reviewer:
            Simey Lameze Simey Lameze
            Integrator:
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Tester:
            Gladys Basiana Gladys Basiana
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Mar/21

                Time Tracking

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