Skip to content

Commit

Permalink
chore(Storage): fixing risky tests via adding assertions (#7152)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwarajanand authored Mar 18, 2024
1 parent 09ea3af commit 58ef57f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Storage/tests/Snippet/HmacKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public function testInfo()
public function testUpdate()
{
$this->connection->updateHmacKey(Argument::withEntry('state', 'INACTIVE'))
->willReturn($this->metadata);
->willReturn($this->metadata)
->shouldBeCalled();

$this->key->___setProperty('connection', $this->connection->reveal());

Expand All @@ -107,7 +108,8 @@ public function testUpdate()
public function testDelete()
{
$this->connection->deleteHmacKey(Argument::any())
->willReturn(null);
->willReturn(null)
->shouldBeCalled();

$this->key->___setProperty('connection', $this->connection->reveal());

Expand Down

0 comments on commit 58ef57f

Please sign in to comment.