public function ContentTest::testOuterHtml in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
Namespace
Behat\Mink\Tests\Driver\BasicCode
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());
}