Skip to content

Commit

Permalink
sftp options, adjusting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
electrolinux committed Apr 2, 2015
1 parent 5273c4c commit 5185086
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/Adapter/Factory/SftpAdapterFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,16 @@ public function validateConfigProvider()
['host' => 'foo', 'port' => 'foo', 'username' => 'foo'],
false,
'UnexpectedValueException',
"Missing 'password' as option"
"Missing either 'password' or 'privateKey' as option"
],
[
['host' => 'foo', 'port' => 'foo', 'username' => 'foo', 'password' => 'foo'],
['host' => 'foo', 'port' => 'foo', 'username' => 'foo', 'password' => 'foo'],
],
[
['host' => 'foo', 'port' => 'foo', 'username' => 'foo', 'privateKey' => 'foo'],
['host' => 'foo', 'port' => 'foo', 'username' => 'foo', 'privateKey' => 'foo'],
],
];
}
}

0 comments on commit 5185086

Please sign in to comment.