Skip to content

Commit aa10351

Browse files
authored
Merge pull request #66 from abashurov/master
Fixed tests: Check the list of IP Addresses instead of the 1st element
2 parents 6941b2c + 1c2cace commit aa10351

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/SecretKeyTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ public function testGetAll()
3333

3434
$keys = static::$_client->secretKey()->getAll();
3535
$this->assertGreaterThanOrEqual(2, count($keys));
36-
$this->assertEquals('192.168.0.1', $keys[0]->ipAddress);
36+
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);
3740

3841
foreach ($keyIds as $keyId) {
3942
static::$_client->secretKey()->delete($keyId);

0 commit comments

Comments
 (0)