You are here

public function DebugContext::dumpHtml in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.5 tests/contexts/DebugContext.behat.inc \Acquia\LightningExtension\Context\DebugContext::dumpHtml()
  2. 8.2 tests/contexts/DebugContext.behat.inc \Acquia\LightningExtension\Context\DebugContext::dumpHTML()
  3. 8.3 tests/contexts/DebugContext.behat.inc \Acquia\LightningExtension\Context\DebugContext::dumpHtml()

Dumps the current page HTML.

@When I dump the HTML

File

tests/contexts/DebugContext.behat.inc, line 42

Class

DebugContext
Contains step definitions to assist with debugging tests.

Namespace

Acquia\LightningExtension\Context

Code

public function dumpHtml() {
  print_r($this
    ->getSession()
    ->getPage()
    ->getContent());
}