Illuminate\Foundation\Testing\Concerns\InteractsWithSession::assertSessionHasAll PHP Method

assertSessionHasAll() public method

Assert that the session has a given list of values.
public assertSessionHasAll ( array $bindings )
$bindings array
    public function assertSessionHasAll(array $bindings)
    {
        foreach ($bindings as $key => $value) {
            if (is_int($key)) {
                $this->assertSessionHas($value);
            } else {
                $this->assertSessionHas($key, $value);
            }
        }
        return $this;
    }