You are here

public function ContentTest::testOuterHtml 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::testOuterHtml()

File

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

Class

ContentTest

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testOuterHtml() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/index.html'));
  $element = $this
    ->getAssertSession()
    ->elementExists('css', '.travers');
  $this
    ->assertEquals("<div class=\"travers\">\n            <div class=\"sub\">el1</div>\n" . "            <div class=\"sub\">el2</div>\n            <div class=\"sub\">\n" . "                <a href=\"some_url\">some <strong>deep</strong> url</a>\n" . "            </div>\n        </div>", $element
    ->getOuterHtml());
}