Session Actions

Centum\Codeception\Actions\SessionActions

grabSession

Grab the HTTP Session from the Container.

grabSession(): Centum\Interfaces\Http\SessionInterface

seeInSession

Check that a Session key exists.

seeInSession(
    non-empty-string $key
): void

dontSeeInSession

Check that a Session key does not exist.

dontSeeInSession(
    non-empty-string $key
): void

grabFromSession

grabFromSession(
    non-empty-string $key,
    mixed $defaultValue = null
): mixed

seeValueInSessionIs

seeValueInSessionIs(
    non-empty-string $key,
    mixed $expectedValue
): void

seeValueInSessionIsNot

seeValueInSessionIsNot(
    non-empty-string $key,
    mixed $expectedValue
): void

removeFromSession

Remove a key from the Session.

removeFromSession(
    non-empty-string $key
): void