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

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

XMLWordPrintable

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • wip-MDL-55418-master
    • 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

      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

            marina Marina Glancy
            marina Marina Glancy
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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