From ef9581e4c7e89735b51751dd4edade003045e5e0 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 6 Jul 2026 22:05:21 +0400 Subject: [PATCH] Use assertSame for scalar assertions per Rector --- tests/e2e/Services/Storage/StorageCustomClientTest.php | 2 +- tests/unit/Utopia/Database/Validator/FolderTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/Services/Storage/StorageCustomClientTest.php b/tests/e2e/Services/Storage/StorageCustomClientTest.php index 1ddd8bd57c..215df8627f 100644 --- a/tests/e2e/Services/Storage/StorageCustomClientTest.php +++ b/tests/e2e/Services/Storage/StorageCustomClientTest.php @@ -1644,7 +1644,7 @@ final class StorageCustomClientTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(['shared/'], \array_column($response['body']['folders'], 'key')); + $this->assertSame(['shared/'], \array_column($response['body']['folders'], 'key')); $response = $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucketId, [ 'content-type' => 'application/json', diff --git a/tests/unit/Utopia/Database/Validator/FolderTest.php b/tests/unit/Utopia/Database/Validator/FolderTest.php index d645788bb2..c95165ef74 100644 --- a/tests/unit/Utopia/Database/Validator/FolderTest.php +++ b/tests/unit/Utopia/Database/Validator/FolderTest.php @@ -48,9 +48,9 @@ final class FolderTest extends TestCase public function testNormalize(): void { - $this->assertEquals('', Folder::normalize('')); - $this->assertEquals('photos/', Folder::normalize('photos')); - $this->assertEquals('photos/', Folder::normalize('photos/')); - $this->assertEquals('photos/2026/', Folder::normalize('photos/2026')); + $this->assertSame('', Folder::normalize('')); + $this->assertSame('photos/', Folder::normalize('photos')); + $this->assertSame('photos/', Folder::normalize('photos/')); + $this->assertSame('photos/2026/', Folder::normalize('photos/2026')); } }