You are here

function NivoSliderWebTestCase::getTestImage in Nivo Slider 7

Retrieves a sample image file.

2 calls to NivoSliderWebTestCase::getTestImage()
OptionTest::testOptionTest in ./nivo_slider.test
Add a new slide and ensure that it was created successfully.
SlideTest::testSlideTest in ./nivo_slider.test
Add a new slide and ensure that it was created successfully.

File

./nivo_slider.test, line 21
Tests for nivo_slider.module.

Class

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

Code

function getTestImage() {

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