Свойство | Тип | Описание | |
---|---|---|---|
$crawler | Symfony\Component\DomCrawler\Crawler | The Synfony's DomCrawler of the last request | |
$lastException | Symfony\Component\HttpKernel\Exception\HttpException | Will the last HttpException caught | |
$requestInput | array | Will contain the parameters of the next request |
Метод | Описание | |
---|---|---|
assertBodyHasHtml ( $needle ) | ||
assertBodyHasNotText ( $needle ) | ||
assertBodyHasText ( $needle ) | ||
assertRedirection ( $location = null ) : void | Asserts if page was redirected correctly | |
assertRequestOk ( ) : void | Asserts if the request was Ok (200) | |
assertSessionHas ( string $name, mixed $value = null ) : void. | Asserts if the session variable is correct | |
assertStatusCode ( $code ) : void | Asserts if the status code is correct | |
getBodyHtml ( ) | ||
getBodyText ( ) | ||
requestAction ( string $method, string $action, $params = [] ) : ControllerTestCase | Request an URL by the action name | |
requestUrl ( string $method, string $url, $params = [] ) : ControllerTestCase | Request an URL | |
setUp ( ) | Set session and enable Laravel filters | |
withInput ( array $params ) : mixed | Set the post parameters and return this for chainable method call |
public assertRedirection ( $location = null ) : void | ||
$location | Location where it should be redirected | |
Результат | void |
public assertRequestOk ( ) : void | ||
Результат | void |
public assertSessionHas ( string $name, mixed $value = null ) : void. | ||
$name | string | Session variable name. |
$value | mixed | Session variable value. |
Результат | void. |
public assertStatusCode ( $code ) : void | ||
$code | Correct status code | |
Результат | void |
public requestAction ( string $method, string $action, $params = [] ) : ControllerTestCase | ||
$method | string | |
$action | string | |
Результат | ControllerTestCase | this for method chaining. |
public requestUrl ( string $method, string $url, $params = [] ) : ControllerTestCase | ||
$method | string | |
$url | string | |
Результат | ControllerTestCase | this for method chaining. |
protected Symfony\Component\DomCrawler\Crawler $crawler | ||
Результат | Symfony\Component\DomCrawler\Crawler |
protected HttpException,Symfony\Component\HttpKernel\Exception $lastException | ||
Результат | Symfony\Component\HttpKernel\Exception\HttpException |
protected array $requestInput | ||
Результат | array |