Permalink
Browse files

[單元測試] 顯示所有 Blob

  • Loading branch information...
1 parent c9345c5 commit 43cf30577d4f981439b24c1c57be268fba270067 Sam.IO.Hsiao committed Aug 14, 2016
Showing with 16 additions and 0 deletions.
  1. +16 −0 tests/AzureBlobServiceUnitTest.php
@@ -42,4 +42,20 @@ public function 建立Blob()
$expected = true;
$this->assertEquals($expected, $actual);
}
+
+ /** @test */
+ public function 顯示所有Blob()
+ {
+ /** arrange */
+
+ /** act */
+ $containerName = 'mycontainer';
+ $actual = $this->target->listAllBlobs($containerName)->all();
+
+ /** assert */
+ $expected = [
+ ['name' => 'myblob', 'url' => 'https://laravel52blobstorage.blob.core.windows.net/mycontainer/myblob']
+ ];
+ $this->assertEquals($expected, $actual);
+ }
}

0 comments on commit 43cf305

Please sign in to comment.