You are here

public function ThunderImageCompareTestTrait::getScreenshotFile in Thunder 8.2

Get screenshot file path.

Parameters

string $screenshotName: Screenshot name.

Return value

string Return file path to screenshot image file.

2 calls to ThunderImageCompareTestTrait::getScreenshotFile()
RiddleTest::testRiddle in tests/src/FunctionalJavascript/Integration/RiddleTest.php
Testing integration of "thunder_riddle" module.
ThunderMediaTest::test8104 in tests/src/FunctionalJavascript/Update/ThunderMediaTest.php
Test that Video and Image entity browser uses 24 images per page.

File

tests/src/FunctionalJavascript/ThunderImageCompareTestTrait.php, line 186

Class

ThunderImageCompareTestTrait
Trait for creating and comparing of screenshots.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

public function getScreenshotFile($screenshotName) {
  return dirname(__FILE__) . sprintf('/../../fixtures/screenshots/%s.png', $screenshotName);
}