Manager

Manager class Manager (View source) Traits CapsuleManagerTrait

Manager

Manager class Manager (View source) Traits CapsuleManagerTrait

MakesHttpRequests::withoutMiddleware()

$this withoutMiddleware() Disable middleware for the test. Return Value $this

MakesHttpRequests::within()

$this within(string $element, Closure $callback) Narrow the test content to a specific area of the page. Parameters string $element Closure $callback Return Value $this

MakesHttpRequests::visitRoute()

$this visitRoute(string $route, array $parameters = array()) Visit the given named route with a GET request. Parameters string $route array $parameters Return Value $this

MakesHttpRequests::visit()

$this visit(string $uri) Visit the given URI with a GET request. Parameters string $uri Return Value $this

MakesHttpRequests::seeText()

$this seeText(string $text, bool $negate = false) Assert that a given string is seen on the current text. Parameters string $text bool $negate Return Value $this

MakesHttpRequests::seeLink()

$this seeLink(string $text, string|null $url = null, bool $negate = false) Assert that a given link is seen on the page. Parameters string $text string|null $url bool $negate Return Value $this

MakesHttpRequests::seeJsonStructure()

$this seeJsonStructure(array $structure = null, array|null $responseData = null) Assert that the JSON response has a given structure. Parameters array $structure array|null $responseData Return Value $this

MakesHttpRequests::seeJsonEquals()

$this seeJsonEquals(array $data) Assert that the response contains an exact JSON array. Parameters array $data Return Value $this