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

Class 'Behat\Behat\Exception\PendingException' not found

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Create a behat test as in example in description
      Make sure the reasonable error text is displayed and not a fatal error

      Example of reasonable error:

      Given the following "course categories" exist: # behat_data_generators::the_following_exist()

      course categories data generator is not implemented

      Show
      Create a behat test as in example in description Make sure the reasonable error text is displayed and not a fatal error Example of reasonable error: Given the following "course categories" exist: # behat_data_generators::the_following_exist() course categories data generator is not implemented
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      wip-MDL-55418-master

      Description

      Got this from behat:

      Fatal error: Class 'Behat\Behat\Exception\PendingException' not found in /home/marina/repositories/master/moodle/lib/tests/behat/behat_data_generators.php on line 195

      I have created the behat test and put

        Scenario: Add files recently uploaded
          Given the following "course categories" exist:
            | name  | category | idnumber | visible |
            | Cat 1 | 0        | CAT1     | 1       |
            | Cat 2 | 0        | CAT2     | 0       |
      

      This is an error because it should be

          Given the following "categories" exist:
      

      but revealed an error in our behat.

      Search shows more places where the wrong class name is used

        Attachments

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            marina Marina Glancy
            Peer reviewer:
            Rajesh Taneja
            Integrator:
            Dan Poltawski
            Tester:
            Dan Poltawski
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Sep/16