From 7c2b04712032780f72ff3e257c2cee0053738430 Mon Sep 17 00:00:00 2001 From: Iain Date: Thu, 29 Feb 2024 01:29:22 +0100 Subject: [PATCH] Fix behat tests --- composer.json | 2 +- tests/Behat/TeamContext.php | 2 +- tests/Behat/UserContext.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b7e0d71..7d7a286 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "doctrine/doctrine-migrations-bundle": "^3.2", "doctrine/orm": "^2.13", "ramsey/uuid-doctrine": "^1.8.1", - "parthenon/parthenon": "^2.2.10", + "parthenon/parthenon": "^2.2.11", "symfony/console": "7.*", "symfony/dotenv": "7.*", "symfony/flex": "^2", diff --git a/tests/Behat/TeamContext.php b/tests/Behat/TeamContext.php index 7c75199..bf650c1 100644 --- a/tests/Behat/TeamContext.php +++ b/tests/Behat/TeamContext.php @@ -27,7 +27,7 @@ public function __construct( */ public function iViewTheTeamView() { - $this->sendJsonRequest('GET', '/api/user/team/invite'); + $this->sendJsonRequest('GET', '/api/user/team'); } /** diff --git a/tests/Behat/UserContext.php b/tests/Behat/UserContext.php index a94e6bd..1b9adfe 100644 --- a/tests/Behat/UserContext.php +++ b/tests/Behat/UserContext.php @@ -59,7 +59,7 @@ public function iTryToSignUp() public function iWillSeeAnErrorAboutAnInvalidEmailAddress() { $json = json_decode($this->session->getPage()->getContent(), true); - + if (!$json || $json['errors']['email'] !== ['A valid email must be provided.']) { throw new \Exception("Can't find an error about an invalid email"); }