protected assertInPage ( Illuminate\Foundation\Testing\Constraints\PageConstraint $constraint, boolean $reverse = false, string $message = '' ) | ||
$constraint | Illuminate\Foundation\Testing\Constraints\PageConstraint | |
$reverse | boolean | |
$message | string |
protected function assertInPage(PageConstraint $constraint, $reverse = false, $message = '')
{
if ($reverse) {
$constraint = new ReversePageConstraint($constraint);
}
self::assertThat($this->crawler() ?: $this->response->getContent(), $constraint, $message);
return $this;
}