From 6da4a8282591bb067120a29c14c6c758dfdddb2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 25 Feb 2024 16:47:26 +0000 Subject: [PATCH] Fix tests --- tests/e2e/Services/Teams/TeamsBaseClient.php | 4 ++-- tests/e2e/Services/Teams/TeamsBaseServer.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/Services/Teams/TeamsBaseClient.php b/tests/e2e/Services/Teams/TeamsBaseClient.php index f586466cc..dff1c8571 100644 --- a/tests/e2e/Services/Teams/TeamsBaseClient.php +++ b/tests/e2e/Services/Teams/TeamsBaseClient.php @@ -30,7 +30,7 @@ trait TeamsBaseClient $this->assertEquals(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]['$id']); - $this->assertNotEmpty($response['body']['memberships'][0]['mfa']); + $this->assertFalse($response['body']['memberships'][0]['mfa']); $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); @@ -156,7 +156,7 @@ trait TeamsBaseClient $this->assertEquals(200, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $this->assertNotEmpty($response['body']['mfa']); + $this->assertFalse($response['body']['mfa']); $this->assertNotEmpty($response['body']['userId']); $this->assertNotEmpty($response['body']['userName']); $this->assertNotEmpty($response['body']['userEmail']); diff --git a/tests/e2e/Services/Teams/TeamsBaseServer.php b/tests/e2e/Services/Teams/TeamsBaseServer.php index 19ac779be..4e9d0839a 100644 --- a/tests/e2e/Services/Teams/TeamsBaseServer.php +++ b/tests/e2e/Services/Teams/TeamsBaseServer.php @@ -51,7 +51,7 @@ trait TeamsBaseServer $this->assertEquals(200, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['userId']); - $this->assertNotEmpty($response['body']['mfa']); + $this->assertFalse($response['body']['mfa']); $this->assertNotEmpty($response['body']['userName']); $this->assertNotEmpty($response['body']['userEmail']); $this->assertNotEmpty($response['body']['teamId']);