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

Use a constant instead of !empty($CFG->originaldataroot)

    XMLWordPrintable

Details

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-39478_master
    • Hide

      You need PHP 5.4 to run this test.

      1. Install and enable your test environment (php admin/tool/behat/cli/init.php)
      2. Start your PHP 5.4 built-in server, no $CFG->behat_switchcompletely allowed here
      3. Check your wwwroot, you SHOULD see your normal moodle site
      4. Check localhost:8000 (or $CFG->behat_wwwroot is you specified something else) you SHOULD see your behat test site
      5. Disable your test environment (php admin/tool/behat/cli/util.php --disable)
      6. Check localhost:8000 (or $CFG->behat_wwwroot is you specified something else) you SHOULD see a message and be redirected to your wwwroot where you SHOULD see your normal moodle site
      7. Edit your config.php and add $CFG->behat_switchcompletely = true before the lib/setup.php require
      8. Check your wwwroot, you SHOULD see your normal moodle site
      9. Enable your behat test environment (php admin/tool/behat/cli/util.php --enable)
      10. Check your wwwroot, you SHOULD see your behat test site
      Show
      You need PHP 5.4 to run this test. Install and enable your test environment ( php admin/tool/behat/cli/init.php ) Start your PHP 5.4 built-in server, no $CFG->behat_switchcompletely allowed here Check your wwwroot, you SHOULD see your normal moodle site Check localhost:8000 (or $CFG->behat_wwwroot is you specified something else) you SHOULD see your behat test site Disable your test environment ( php admin/tool/behat/cli/util.php --disable ) Check localhost:8000 (or $CFG->behat_wwwroot is you specified something else) you SHOULD see a message and be redirected to your wwwroot where you SHOULD see your normal moodle site Edit your config.php and add $CFG->behat_switchcompletely = true before the lib/setup.php require Check your wwwroot, you SHOULD see your normal moodle site Enable your behat test environment ( php admin/tool/behat/cli/util.php --enable ) Check your wwwroot, you SHOULD see your behat test site

    Description

      This should have been addressed from the beginning, but there were not many places where we were controlling if the behat test site is being used and BEHAT_RUNNING is similar, we need to create a constant with an identifier name according to what it does

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              dmonllao David Monllaó
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13