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

behat_switchcompletely behaves differently when isset() and when !empty()

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Edit your config.php file and add $CFG->behat_switchcompletely = false;
      2. Update your testing environment and --enable it again to refresh the config file
      3. Access your moodle site using the normal wwwroot URL
      4. You SHOULD see your normal site
      Show
      Edit your config.php file and add $CFG->behat_switchcompletely = false; Update your testing environment and --enable it again to refresh the config file Access your moodle site using the normal wwwroot URL You SHOULD see your normal site
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-38327_master

      Description

      After any kind of change in $CFG->behat_* vars the behat tests site should be reenabled to keep the behat config file up to date, with $CFG->behat_switchcompletely this is different because it affects all the moodle site, not only from a behat point of view, also when accessing moodle. Right now the switch completely is checked with an isset instead of a !empty()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Frédéric Massart Frédéric Massart
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Rajesh Taneja Rajesh Taneja
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, 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:
                14/May/13