You are here

public function NivoSliderTestBase::getTestImage in Nivo Slider 8

Retrieves a sample image file.

2 calls to NivoSliderTestBase::getTestImage()
OptionTest::testOptionTest in lib/Drupal/nivo_slider/Tests/OptionTest.php
Add a new slide and ensure that it was created successfully.
SlideTest::testSlideTest in lib/Drupal/nivo_slider/Tests/SlideTest.php
Add a new slide and ensure that it was created successfully.

File

lib/Drupal/nivo_slider/Tests/NivoSliderTestBase.php, line 38

Class

NivoSliderTestBase
Defines a base class for testing the Nivo Slider module.

Namespace

Drupal\nivo_slider\Tests

Code

public function getTestImage() {

  // Get a file to upload.
  $file = current($this
    ->drupalGetTestFiles('image'));
  return $file;
}