Illuminate\Foundation\Testing\Concerns\InteractsWithSession::assertSessionMissing PHP Метод

assertSessionMissing() публичный Метод

Assert that the session does not have a given key.
public assertSessionMissing ( string | array $key )
$key string | array
    public function assertSessionMissing($key)
    {
        if (is_array($key)) {
            foreach ($key as $k) {
                $this->assertSessionMissing($k);
            }
        } else {
            PHPUnit::assertFalse($this->app['session.store']->has($key), "Session has unexpected key: {$key}");
        }
        return $this;
    }