Skip to content

Commit

Permalink
collateral coverage ... sue me\!
Browse files Browse the repository at this point in the history
  • Loading branch information
Mudi Ugbowanko committed Jun 1, 2014
1 parent 1ffefe0 commit 2291655
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/src/Unit/Platfrom/Aws/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ public function testLaunchInstancesWithAWSInstanceAccess() {
'key.name' => $generatedKeyName
]);

$this->patchClassMethod('App\Platform\Aws\InstanceAccess::setPrivateKey', function($key) use ($fakeKey){
$this->assertEquals($fakeKey, $key);
}, 1);

$this->patchClassMethod('App\Platform\Aws\Client::convertToInstances');
$this->patchClassMethod('App\Platform\Aws\Client::getEc2Client', function() use ($fakeKey, $generatedKeyName){
$mockEc2Client = $this->getMockEc2Client([
Expand Down Expand Up @@ -124,6 +120,7 @@ public function testLaunchInstancesWithAWSInstanceAccess() {

$client = new Client();
$client->launchInstances($image, 1, [], $instanceAccess);
$this->assertEquals($fakeKey, $instanceAccess->get('key'));
}

public function testGetEc2Client() {
Expand Down

0 comments on commit 2291655

Please sign in to comment.