Permalink
Browse files

[單元測試] 建立 Container

1 parent 9f84f40 commit 325d35d15c8f6b0c31d0a6eb46f7ba24bacdc0dd Sam.IO.Hsiao committed Aug 14, 2016
Showing with 29 additions and 0 deletions.
  1. +29 −0 tests/AzureBlobServiceUnitTest.php
@@ -0,0 +1,29 @@
+<?php
+
+use App\Services\AzureBlobService;
+
+class AzureBlobServiceUnitTest extends TestCase
+{
+ /** @var AzureBlobService */
+ protected $target;
+
+ protected function setUp()
+ {
+ parent::setUp();
+ $this->target = App::make(AzureBlobService::class);
+ }
+
+ /** @test */
+ public function 建立Container()
+ {
+ /** arrange */
+
+ /** act */
+ $containerName = 'mycontainer';
+ $actual = $this->target->createContainer($containerName);
+
+ /** assert */
+ $expected = true;
+ $this->assertEquals($expected, $actual);
+ }
+}

0 comments on commit 325d35d

Please sign in to comment.