Use assertSame for scalar assertions per Rector

This commit is contained in:
Torsten Dittmann committed 2026-07-06 22:05:21 +04:00
1 parent a8beaaabba
commit ef9581e4c7
2 files changed
+5 -5

No files matched your search

@@ -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',
@@ -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'));
}
}