Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Added one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
rymanalu committed Nov 12, 2018
1 parent 102b7bf commit 593c066
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tests/AzureBlobStorageAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ public function it_correctly_generates_the_file_url()

$this->assertEquals('https://azure_account.blob.core.windows.net/azure_container/test.txt', $adapter->getUrl('test.txt'));
}

/** @test */
public function it_now_supports_the_url_method()
{
$storage = $this->app['filesystem'];

$this->assertEquals('https://my_azure_storage_name.blob.core.windows.net/MY_AZURE_STORAGE_CONTAINER/test.txt', $storage->url('test.txt'));
}
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function getEnvironmentSetUp($app)
$app['config']->set('filesystems.disks.azure', [
'driver' => 'azure',
'name' => 'MY_AZURE_STORAGE_NAME',
'key' => 'MY_AZURE_STORAGE_KEY',
'key' => base64_encode('MY_AZURE_STORAGE_KEY'),
'container' => 'MY_AZURE_STORAGE_CONTAINER',
]);
}
Expand Down

0 comments on commit 593c066

Please sign in to comment.