You are here

public function ContentTest::testDumpingEmptyElements in Zircon Profile 8

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

File

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

Class

ContentTest

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testDumpingEmptyElements() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/index.html'));
  $element = $this
    ->getAssertSession()
    ->elementExists('css', '#empty');
  $this
    ->assertEquals('An empty <em></em> tag should be rendered with both open and close tags.', trim($element
    ->getHtml()));
}