mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Use assertSame for scalar assertions per Rector
This commit is contained in:
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'));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user