You are here

public function ContentTest::testJson in Zircon Profile 8.0

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

File

vendor/behat/mink/driver-testsuite/tests/Basic/ContentTest.php, line 59

Class

ContentTest

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testJson() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/json.php'));
  $this
    ->assertContains('{"key1":"val1","key2":234,"key3":[1,2,3]}', $this
    ->getSession()
    ->getPage()
    ->getContent());
}