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

Inject the php version used in phpunit/behat tests (nice to have) and ensure environment is same between behat web/cli

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Run phpunit and ensure it show php version, dbtype, dbversion and OS details.

      Behat should check for different php versions.

      1. Change your cli php version to be different from web php version (use phpbrew)
      2. Run behat and it should show differences (Differences decteted between cli and webserver...)

      Ensure environment page is not accessible via normal site.

      1. Navigate to admin/tool/behat/tests/behat/fixtures/environment.php via url and ensure it's only visible for acceptance site.($CFG->wwwroot/admin/tool/behat/tests/behat/fixtures/environment.php should be a blank page)
      Show
      Run phpunit and ensure it show php version, dbtype, dbversion and OS details. Behat should check for different php versions. Change your cli php version to be different from web php version (use phpbrew) Run behat and it should show differences (Differences decteted between cli and webserver...) Ensure environment page is not accessible via normal site. Navigate to admin/tool/behat/tests/behat/fixtures/environment.php via url and ensure it's only visible for acceptance site.($CFG->wwwroot/admin/tool/behat/tests/behat/fixtures/environment.php should be a blank page)
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      wip-mdl-52502

      Description

      We have some "heading" lines both in phpunit and behat execution showing the moodle version, database, commit...

      Now, with the php5 / php7 split, it would be interesting to have also the php version there, so we always know the exact env where a problem happened.

      This can go to all stables, IMO.

      Not critical, but interesting. Ciao

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/May/16