Skip to content

Commit

Permalink
Fix Bug in creation of BlobStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Mar 6, 2013
1 parent 3f163d8 commit 9609164
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Deployment/Assets/BlobStrategy.php
Expand Up @@ -32,11 +32,11 @@ class BlobStrategy extends AssetStrategy
*/
private $client;

public function __construct($container, BlobRestProxy $client)
public function __construct($container)
{
parent::__construct($container);

$this->client = $client;
$this->client = $container->get('windows_azure_distribution.assets.blob.storage');
}

public function deploy($documentRoot, $buildNumber)
Expand Down
16 changes: 16 additions & 0 deletions Tests/ContainerTest.php
Expand Up @@ -69,6 +69,22 @@ public function testServices()
$this->assertInstanceOf('WindowsAzure\Blob\BlobRestProxy', $container->get('windows_azure.blob.test'));
}

public function testAssets()
{
$config = array(
'services' => array(
'blob' => array(
'test' => 'UseDevelopmentStorage=true',
),
),
'assets' => array('type' => 'blob', 'connection_name' => 'test')
);

$container = $this->createContainer($config);

$this->assertInstanceOf('WindowsAzure\DistributionBundle\Deployment\Assets\BlobStrategy', $container->get('windows_azure_distribution.assets'));
}

public function testSessionStorage()
{
$config = array(
Expand Down

0 comments on commit 9609164

Please sign in to comment.