MDL-67317 behat: Ensure that on every scenario we have a session.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 9 Apr 2020 12:02:40 +0000 (14:02 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 16 Apr 2020 18:28:49 +0000 (20:28 +0200)
commit98f56e6f4b4d54a9658f12f40fe9ee01a2fc5ea0
treec32645bf3bb3199521a3a29df0c38a6b709d91bf
parent788dfb9c7dad27824ee524de5c1cb9e43b31b98a
MDL-67317 behat: Ensure that on every scenario we have a session.

Before Mink 1.8.0, any call to getSession() used to auto-start
the session if it was not avaliable there. That always has been
an unsupported detail.

With https://github.com/minkphp/Mink/pull/705 new sessions aren't
auto-created anymore.

And we were relying on that.

So this is, simply about to explicitly create the new session
in our before_scenario stuff, to guarantee that it's always there.
lib/tests/behat/behat_hooks.php