Skip to content

Commit

Permalink
added unit test for tenantName passage
Browse files Browse the repository at this point in the history
  • Loading branch information
gecampbell committed Feb 6, 2013
1 parent 0326c6c commit ac1152b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/OpenStackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function testCredentials() {
$this->assertRegExp(
'/"passwordCredentials"/',
$this->my->Credentials());
$test = new StubConnection(TEST_DOMAIN,
array('username'=>'Foo', 'password'=>'Bar', 'tenantName'=>'Phil'));
$this->assertRegExp(
'/"tenantName":"Phil"/',
$test->Credentials());
}
public function testAuthenticate() {
$this->my->Authenticate();
Expand Down

0 comments on commit ac1152b

Please sign in to comment.