You are here

public function DebugContext::dumpHTML in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 tests/contexts/DebugContext.behat.inc \Acquia\LightningExtension\Context\DebugContext::dumpHtml()
  2. 8.3 tests/contexts/DebugContext.behat.inc \Acquia\LightningExtension\Context\DebugContext::dumpHtml()
  3. 8.4 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 41

Class

DebugContext
Contains step definitions to assist with debugging tests.

Namespace

Acquia\LightningExtension\Context

Code

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