We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6941b2c + 1c2cace commit aa10351Copy full SHA for aa10351
tests/SecretKeyTest.php
@@ -33,7 +33,10 @@ public function testGetAll()
33
34
$keys = static::$_client->secretKey()->getAll();
35
$this->assertGreaterThanOrEqual(2, count($keys));
36
- $this->assertEquals('192.168.0.1', $keys[0]->ipAddress);
+
37
+ $keyIpAddresses = array_map(function($key) { return $key->ipAddress; }, $keys);
38
+ $this->assertContains('192.168.0.1', $keyIpAddresses);
39
+ $this->assertContains('192.168.0.2', $keyIpAddresses);
40
41
foreach ($keyIds as $keyId) {
42
static::$_client->secretKey()->delete($keyId);
0 commit comments