Skip to content

Commit

Permalink
Added case for handling scenarios with a single data entry
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrFedak committed Jun 7, 2024
1 parent 7a0f555 commit bf4534c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Features/Traits/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,16 @@ public function theSessionShouldNotHaveKey(string $key): void
}

/**
* @Given the session forgets key :key
* @Then the session should have key :key with value :value
*/
public function theSessionShouldHaveKeyWithValue(string $key, string $value): void
{
$session = $this->getContainer()->get("session");
Assert::assertEquals($value, $session->get($key));
}

/**
* @Given the session forgets the key :key
*/
public function theSessionForgetsKey(string $key): void
{
Expand Down

0 comments on commit bf4534c

Please sign in to comment.