We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7e42df commit f2d043eCopy full SHA for f2d043e
1 file changed
tests/Feature/KeyTest.php
@@ -9,18 +9,25 @@
9
class KeyTest extends TestCase
10
{
11
private $keyId = null;
12
+ private $createKeyResponse = null;
13
+
14
15
protected function setUp(): void
16
17
parent::setUp();
18
- $response = $this->client()->keys->create([
19
+ $res = $this->client()->keys->create([
20
'description' => 'Admin key.',
21
'actions' => ['*'],
22
'collections' => ['*']
- ]);;
- $this->keyId = $response['id'];
23
- $this->assertEquals($response['description'], 'Admin key.');
+ ]);
24
+ $this->createKeyResponse = $res;
25
+ $this->keyId = $res['id'];
26
+ }
27
28
+ public function testCanCreateAKey(): void
29
+ {
30
+ $this->assertEquals($this->createKeyResponse['description'], 'Admin key.');
31
}
32
33
public function testCanRetrieveAKey(): void
0 commit comments