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

    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • wip-mdl-52502
    • 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)

      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

            rajeshtaneja Rajesh Taneja
            stronk7 Eloy Lafuente (stronk7)
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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