Skip to content

Commit 6dde4e3

Browse files
author
Frank Natividad
committed
Update service account email usage in tests
1 parent 9f61d2d commit 6dde4e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/test/HmacCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function setUp()
4747
// Delete all HMAC keys.
4848
$this->deleteAllHmacKeys($this->hmacServiceAccount);
4949
// Create test key.
50-
$hmacKeyCreated = $this->storage->createHmacKey($hmacServiceAccount, ['projectId' => self::$projectId]);
50+
$hmacKeyCreated = $this->storage->createHmacKey($this->hmacServiceAccount, ['projectId' => self::$projectId]);
5151
$this->accessId = $hmacKeyCreated->hmacKey()->accessId();
5252
}
5353

@@ -57,9 +57,9 @@ public function tearDown()
5757
$this->deleteAllHmacKeys($this->hmacServiceAccount);
5858
}
5959

60-
private function deleteAllHmacKeys($hmacServiceAccount)
60+
private function deleteAllHmacKeys($serviceAccountEmail)
6161
{
62-
$hmacKeys = $this->storage->hmacKeys();
62+
$hmacKeys = $this->storage->hmacKeys(['serviceAccountEmail' => $serviceAccountEmail]);
6363
foreach ($hmacKeys as $hmacKey) {
6464
$hmacKey->update('INACTIVE');
6565
$hmacKey->delete();

0 commit comments

Comments
 (0)