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

Generator exeption in behat test

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Run behat with --tags @block_activity_modules

      Show
      Run behat with --tags @block_activity_modules
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE

      Description

      Only in 2.5 when running behat with only tag @block_activity_modules I get debugging:

      Course cache integrity check failed: course module with id 2 does not have context. Rebuilding cache for course 1 ++
      * line 307 of /lib/modinfolib.php: call to debugging()
      * line 1429 of /lib/modinfolib.php: call to course_modinfo->__construct()
      * line 1308 of /course/lib.php: call to get_fast_modinfo()
      * line 1364 of /course/lib.php: call to course_create_sections_if_missing()
      * line 106 of /lib/testing/generator/module_generator.php: call to course_add_cm_to_section()
      * line 77 of /mod/assign/tests/generator/lib.php: call to testing_module_generator->precreate_course_module()
      * line 415 of /lib/testing/generator/data_generator.php: call to mod_assign_generator->create_instance()
      * line 261 of /lib/tests/behat/behat_data_generators.php: call to testing_data_generator->create_module()
      * line 217 of /lib/tests/behat/behat_data_generators.php: call to behat_data_generators->process_activity()
      * line ? of unknownfile: call to behat_data_generators->the_following_exists()
      * line 155 of /vendor/behat/behat/src/Behat/Behat/Definition/Annotation/Definition.php: call to call_user_func_array()
      * line 194 of /vendor/moodlehq/behat-extension/src/Moodle/BehatExtension/Tester/MoodleStepTester.php: call to Behat\Behat\Definition\Annotation\Definition->run()
      * line 126 of /vendor/behat/behat/src/Behat/Behat/Tester/StepTester.php: call to Moodle\BehatExtension\Tester\MoodleStepTester->executeStepDefinition()
      * line 151 of /vendor/moodlehq/behat-extension/src/Moodle/BehatExtension/Tester/MoodleStepTester.php: call to Behat\Behat\Tester\StepTester->executeStep()
      * line 127 of /vendor/moodlehq/behat-extension/src/Moodle/BehatExtension/Tester/MoodleStepTester.php: call to Moodle\BehatExtension\Tester\MoodleStepTester->executeStep()
      * line 42 of /vendor/behat/gherkin/src/Behat/Gherkin/Node/AbstractNode.php: call to Moodle\BehatExtension\Tester\MoodleStepTester->visit()
      * line 148 of /vendor/behat/behat/src/Behat/Behat/Tester/ScenarioTester.php: call to Behat\Gherkin\Node\AbstractNode->accept()
      * line 87 of /vendor/behat/behat/src/Behat/Behat/Tester/ScenarioTester.php: call to Behat\Behat\Tester\ScenarioTester->visitStep()
      * line 42 of /vendor/behat/gherkin/src/Behat/Gherkin/Node/AbstractNode.php: call to Behat\Behat\Tester\ScenarioTester->visit()
      * line 88 of /vendor/behat/behat/src/Behat/Behat/Tester/FeatureTester.php: call to Behat\Gherkin\Node\AbstractNode->accept()
      * line 42 of /vendor/behat/gherkin/src/Behat/Gherkin/Node/AbstractNode.php: call to Behat\Behat\Tester\FeatureTester->visit()
      * line 150 of /vendor/behat/behat/src/Behat/Behat/Console/Command/BehatCommand.php: call to Behat\Gherkin\Node\AbstractNode->accept()
      * line 128 of /vendor/behat/behat/src/Behat/Behat/Console/Command/BehatCommand.php: call to Behat\Behat\Console\Command\BehatCommand->runFeatures()
      * line 242 of /vendor/symfony/console/Symfony/Component/Console/Command/Command.php: call to Behat\Behat\Console\Command\BehatCommand->execute()
      * line 200 of /vendor/symfony/console/Symfony/Component/Console/Application.php: call to Symfony\Component\Console\Command\Command->run()
      * line 68 of /vendor/behat/behat/src/Behat/Behat/Console/BehatApplication.php: call to Symfony\Component\Console\Application->doRun()
      * line 106 of /vendor/symfony/console/Symfony/Component/Console/Application.php: call to Behat\Behat\Console\BehatApplication->doRun()
      * line 32 of /vendor/behat/behat/bin/behat: call to Symfony\Component\Console\Application->run()
      

      This looks related to MDL-45287 though not sure how

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14