Skip to content

Commit ac1152b

Browse files
committed
added unit test for tenantName passage
1 parent 0326c6c commit ac1152b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/OpenStackTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ public function testCredentials() {
7373
$this->assertRegExp(
7474
'/"passwordCredentials"/',
7575
$this->my->Credentials());
76+
$test = new StubConnection(TEST_DOMAIN,
77+
array('username'=>'Foo', 'password'=>'Bar', 'tenantName'=>'Phil'));
78+
$this->assertRegExp(
79+
'/"tenantName":"Phil"/',
80+
$test->Credentials());
7681
}
7782
public function testAuthenticate() {
7883
$this->my->Authenticate();

0 commit comments

Comments
 (0)