Skip to content

Commit 50348c2

Browse files
author
brecht.vermeersch
committed
fix tests
1 parent 561e4da commit 50348c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/AzureStorageBlobAdapterTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use AzureOss\LaravelAzureStorageBlob\AzureStorageBlobAdapter;
66
use AzureOss\LaravelAzureStorageBlob\AzureStorageBlobServiceProvider;
7+
use AzureOss\Storage\Blob\BlobServiceClient;
78
use Illuminate\Support\Facades\Http;
89
use Illuminate\Support\Facades\Storage;
910
use Orchestra\Testbench\TestCase;
@@ -34,6 +35,10 @@ public function it_resolves_from_manager(): void
3435
#[Test]
3536
public function driver_works(): void
3637
{
38+
BlobServiceClient::fromConnectionString(env('AZURE_STORAGE_CONNECTION_STRING'))
39+
->getContainerClient(env('AZURE_STORAGE_CONTAINER'))
40+
->createIfNotExists();
41+
3742
$driver = Storage::disk('azure');
3843

3944
// cleanup from previous test runs

0 commit comments

Comments
 (0)