Skip to content

Commit 11ed587

Browse files
author
Frank Natividad
committed
Update sample tests
1 parent d41e2de commit 11ed587

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

storage/test/HmacCommandTest.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,30 +109,29 @@ public function testHmacKeyDeactivate() {
109109
[
110110
'projectId' => self::$projectId,
111111
'accessId' => $this->accessId,
112-
'--activate' => true
112+
'--deactivate' => true
113113
],
114114
['interactive' => false]);
115-
$this->assertContains("The HMAC key is now active", $this->getActualOutput());
115+
$this->assertContains("The HMAC key is now inactive", $this->getActualOutput());
116116
}
117117

118118
public function testHmacKeyActivate()
119119
{
120-
$this->commandTesterManage->execute(
121-
[
122-
'projectId' => self::$projectId,
123-
'accessId' => $this->accessId,
124-
'--activate' => true
125-
],
126-
['interactive' => false]);
127120
$this->commandTesterManage->execute(
128121
[
129122
'projectId' => self::$projectId,
130123
'accessId' => $this->accessId,
131124
'--deactivate' => true
132125
],
133126
['interactive' => false]);
134-
$this->assertContains("The HMAC key is now inactive", $this->getActualOutput());
135-
127+
$this->commandTesterManage->execute(
128+
[
129+
'projectId' => self::$projectId,
130+
'accessId' => $this->accessId,
131+
'--activate' => true
132+
],
133+
['interactive' => false]);
134+
$this->assertContains("The HMAC key is now active", $this->getActualOutput());
136135
}
137136

138137
public function testHmacKeyDelete()

0 commit comments

Comments
 (0)