From 5f3316ff189addd1fb2b283e4e266696db9c7377 Mon Sep 17 00:00:00 2001 From: shimon Date: Mon, 20 Oct 2025 18:38:14 +0300 Subject: [PATCH] fix assertion order --- tests/e2e/Services/Account/AccountCustomClientTest.php | 2 +- tests/e2e/Services/Databases/Legacy/DatabasesBase.php | 2 +- .../Services/Databases/Legacy/DatabasesCustomServerTest.php | 6 +++--- .../Databases/TablesDB/DatabasesCustomServerTest.php | 2 +- tests/e2e/Services/Functions/FunctionsCustomClientTest.php | 2 +- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 4 ++-- tests/e2e/Services/Messaging/MessagingBase.php | 2 +- tests/e2e/Services/Storage/StorageBase.php | 2 +- tests/e2e/Services/Teams/TeamsBase.php | 2 +- tests/e2e/Services/Users/UsersBase.php | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/e2e/Services/Account/AccountCustomClientTest.php b/tests/e2e/Services/Account/AccountCustomClientTest.php index b4e9c218ed..ae21ae75a8 100644 --- a/tests/e2e/Services/Account/AccountCustomClientTest.php +++ b/tests/e2e/Services/Account/AccountCustomClientTest.php @@ -248,7 +248,7 @@ class AccountCustomClientTest extends Scope 'includeTotal' => false ]); - $this->assertEquals($sessionsWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $sessionsWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($sessionsWithIncludeTotalFalse['body']); $this->assertIsArray($sessionsWithIncludeTotalFalse['body']['sessions']); $this->assertIsInt($sessionsWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php index 84b00bc8e2..ec1c7632ed 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php @@ -972,7 +972,7 @@ trait DatabasesBase 'includeTotal' => false ]); - $this->assertEquals($attributesWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $attributesWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($attributesWithIncludeTotalFalse['body']); $this->assertIsArray($attributesWithIncludeTotalFalse['body']['attributes']); $this->assertIsInt($attributesWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php index 04faea28a9..f9fcf24c18 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php @@ -65,7 +65,7 @@ class DatabasesCustomServerTest extends Scope 'includeTotal' => false ]); - $this->assertEquals($databasesWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $databasesWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($databasesWithIncludeTotalFalse['body']); $this->assertIsArray($databasesWithIncludeTotalFalse['body']['databases']); $this->assertIsInt($databasesWithIncludeTotalFalse['body']['total']); @@ -422,7 +422,7 @@ class DatabasesCustomServerTest extends Scope 'includeTotal' => false ]); - $this->assertEquals($collectionsWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $collectionsWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($collectionsWithIncludeTotalFalse['body']); $this->assertIsArray($collectionsWithIncludeTotalFalse['body']['collections']); $this->assertIsInt($collectionsWithIncludeTotalFalse['body']['total']); @@ -4592,7 +4592,7 @@ class DatabasesCustomServerTest extends Scope 'includeTotal' => false ]); - $this->assertEquals($documentsWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $documentsWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($documentsWithIncludeTotalFalse['body']); $this->assertIsArray($documentsWithIncludeTotalFalse['body']['documents']); $this->assertIsInt($documentsWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php index 68e6cad286..5db78ed9a1 100644 --- a/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php @@ -65,7 +65,7 @@ class DatabasesCustomServerTest extends Scope 'includeTotal' => false ]); - $this->assertEquals($databasesWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $databasesWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($databasesWithIncludeTotalFalse['body']); $this->assertIsArray($databasesWithIncludeTotalFalse['body']['databases']); $this->assertIsInt($databasesWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index 21e0d38205..5e1fd8881e 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -386,7 +386,7 @@ class FunctionsCustomClientTest extends Scope 'includeTotal' => false ]); - $this->assertEquals($templatesWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $templatesWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($templatesWithIncludeTotalFalse['body']); $this->assertIsArray($templatesWithIncludeTotalFalse['body']['templates']); $this->assertIsInt($templatesWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 53cff987d3..b0a05bf591 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -423,7 +423,7 @@ class FunctionsCustomServerTest extends Scope */ $deploymentsWithIncludeTotalFalse = $this->listDeployments($functionId, ['includeTotal' => false]); - $this->assertEquals($deploymentsWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $deploymentsWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($deploymentsWithIncludeTotalFalse['body']); $this->assertIsArray($deploymentsWithIncludeTotalFalse['body']['deployments']); $this->assertIsInt($deploymentsWithIncludeTotalFalse['body']['total']); @@ -1021,7 +1021,7 @@ class FunctionsCustomServerTest extends Scope */ $executionsWithIncludeTotalFalse = $this->listExecutions($data['functionId'], ['includeTotal' => false]); - $this->assertEquals($executionsWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $executionsWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($executionsWithIncludeTotalFalse['body']); $this->assertIsArray($executionsWithIncludeTotalFalse['body']['executions']); $this->assertIsInt($executionsWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Messaging/MessagingBase.php b/tests/e2e/Services/Messaging/MessagingBase.php index 456d458414..e4d40aaf68 100644 --- a/tests/e2e/Services/Messaging/MessagingBase.php +++ b/tests/e2e/Services/Messaging/MessagingBase.php @@ -644,7 +644,7 @@ trait MessagingBase 'includeTotal' => false ]); - $this->assertEquals($subscribersWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $subscribersWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($subscribersWithIncludeTotalFalse['body']); $this->assertIsArray($subscribersWithIncludeTotalFalse['body']['subscribers']); $this->assertIsInt($subscribersWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Storage/StorageBase.php b/tests/e2e/Services/Storage/StorageBase.php index 943283d185..361e561283 100644 --- a/tests/e2e/Services/Storage/StorageBase.php +++ b/tests/e2e/Services/Storage/StorageBase.php @@ -389,7 +389,7 @@ trait StorageBase 'includeTotal' => false ]); - $this->assertEquals($filesWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $filesWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($filesWithIncludeTotalFalse['body']); $this->assertIsArray($filesWithIncludeTotalFalse['body']['files']); $this->assertIsInt($filesWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Teams/TeamsBase.php b/tests/e2e/Services/Teams/TeamsBase.php index 4320ef8c6b..ae85e80b91 100644 --- a/tests/e2e/Services/Teams/TeamsBase.php +++ b/tests/e2e/Services/Teams/TeamsBase.php @@ -332,7 +332,7 @@ trait TeamsBase 'includeTotal' => false ]); - $this->assertEquals($teamsWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $teamsWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($teamsWithIncludeTotalFalse['body']); $this->assertIsArray($teamsWithIncludeTotalFalse['body']['teams']); $this->assertIsInt($teamsWithIncludeTotalFalse['body']['total']); diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index bce411906d..aaa00c98ff 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -808,7 +808,7 @@ trait UsersBase 'includeTotal' => false ]); - $this->assertEquals($usersWithIncludeTotalFalse['headers']['status-code'], 200); + $this->assertEquals(200, $usersWithIncludeTotalFalse['headers']['status-code']); $this->assertIsArray($usersWithIncludeTotalFalse['body']); $this->assertIsArray($usersWithIncludeTotalFalse['body']['users']); $this->assertIsInt($usersWithIncludeTotalFalse['body']['total']);