You are here

public function UiTestBase::debugScreenshot in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiTestBase.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiTestBase::debugScreenshot()

Make a screenshot and store it in the public://screenshots uri.

File

tests/src/FunctionalJavascript/UiTestBase.php, line 97

Class

UiTestBase
Has some additional helper methods to make test code more readable.

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

public function debugScreenshot() {
  $screenshot = \Drupal::root() . '/sites/default/files/simpletest/screenshot-' . time() . '.jpg';
  $this
    ->createScreenshot($screenshot);
  echo "\n" . $screenshot . "\n";
}