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

Commit

Permalink
Merge pull request #12 from kleido/master
Browse files Browse the repository at this point in the history
Pass config array to Filesystem
  • Loading branch information
matthewbdaly authored Mar 9, 2020
2 parents 5d20c4e + 5521231 commit 5bf94a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/AzureStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function boot()
$config['url'] ?? null,
$config['prefix'] ?? null
);
return new Filesystem($adapter);
return new Filesystem($adapter, $config);
});
}

Expand Down
11 changes: 11 additions & 0 deletions tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,15 @@ public function it_sets_up_the_storage_correctly()
$this->assertEquals('azure', $storage->getDefaultDriver());
$this->assertEquals('azure', $storage->getDefaultCloudDriver());
}

/** @test */
public function it_sets_up_the_config_correctly()
{
$storage = $this->app['filesystem'];
$settings = $this->app['config']->get('filesystems.disks.azure');

foreach($settings as $key => $value){
$this->assertEquals($value, $storage->getConfig()->get($key));
}
}
}

0 comments on commit 5bf94a5

Please sign in to comment.