diff --git a/tests/sample/Identity/v3/TokenTest.php b/tests/sample/Identity/v3/TokenTest.php index 35398112..692dc542 100644 --- a/tests/sample/Identity/v3/TokenTest.php +++ b/tests/sample/Identity/v3/TokenTest.php @@ -80,7 +80,8 @@ public function testInvalidPassword() { $options = $this->getAuthOpts(); $password = $options['user']['password'] . $this->randomStr(); - $options['user']['password'] .= $password; + $options['user']['id'] = $password; + $options['user']['password'] = $password; $openstack = new OpenStack($options); $this->expectException(BadResponseError::class); @@ -91,8 +92,10 @@ public function testInvalidPassword() public function testInvalidPasswordHidesPassword() { $options = $this->getAuthOpts(); + $password = $options['user']['password'] . $this->randomStr(); - $options['user']['password'] .= $password; + $options['user']['id'] = $password; + $options['user']['password'] = $password; $openstack = new OpenStack(array_merge($options, ['errorVerbosity' => 0])); $this->expectException(BadResponseError::class); @@ -101,7 +104,6 @@ public function testInvalidPasswordHidesPassword() $openstack->objectStoreV1(); } catch (BadResponseError $e) { $this->assertStringNotContainsString($password, $e->getMessage()); - print_r($e->getMessage()); throw $e; }