diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-01-18 00:24:47 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-30 08:35:16 +0200 |
commit | f216b9307a9e9aa8c3eb0b9685a5139070f4ed10 (patch) | |
tree | 9150ef1aa1bbf93ef254f0c511ba8fe64029ba6a /tests/acceptance/features | |
parent | 7625a8741202aa14bc3e98ad02a1adab0d1dd475 (diff) | |
download | nextcloud-server-f216b9307a9e9aa8c3eb0b9685a5139070f4ed10.tar.gz nextcloud-server-f216b9307a9e9aa8c3eb0b9685a5139070f4ed10.zip |
Update Mink from 1.7.1 to 1.8.1 in acceptance tests
Since version 1.8.0 of Mink "Mink::getSession()" no longer starts the
session automatically (see https://github.com/minkphp/Mink/pull/705), so
it now needs to be explicitly started.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/features')
-rw-r--r-- | tests/acceptance/features/core/ActorContext.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/acceptance/features/core/ActorContext.php b/tests/acceptance/features/core/ActorContext.php index 932af5ff277..b3c8b6f0459 100644 --- a/tests/acceptance/features/core/ActorContext.php +++ b/tests/acceptance/features/core/ActorContext.php @@ -135,6 +135,8 @@ class ActorContext extends RawMinkContext { $this->actors = []; $this->sharedNotebook = []; + $this->getSession()->start(); + $this->actors["default"] = new Actor("default", $this->getSession(), $this->getMinkParameter("base_url"), $this->sharedNotebook); $this->actors["default"]->setFindTimeoutMultiplier($this->actorTimeoutMultiplier); @@ -159,6 +161,8 @@ class ActorContext extends RawMinkContext { */ public function iActAs($actorName) { if (!array_key_exists($actorName, $this->actors)) { + $this->getSession($actorName)->start(); + $this->actors[$actorName] = new Actor($actorName, $this->getSession($actorName), $this->getMinkParameter("base_url"), $this->sharedNotebook); $this->actors[$actorName]->setFindTimeoutMultiplier($this->actorTimeoutMultiplier); } |