You are here

public function ErrorHandlingTest::testVisitErrorPage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Basic\ErrorHandlingTest::testVisitErrorPage()

File

vendor/behat/mink/driver-testsuite/tests/Basic/ErrorHandlingTest.php, line 18

Class

ErrorHandlingTest
@group slow

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testVisitErrorPage() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/500.php'));
  $this
    ->assertContains('Sorry, a server error happened', $this
    ->getSession()
    ->getPage()
    ->getContent(), 'Drivers allow loading pages with a 500 status code');
}