You are here

function image_test_reset in SimpleTest 7

Reset/initialize the history of calls to the toolkit functions.

See also

image_test_get_all_calls().

1 call to image_test_reset()
ImageToolkitTestCase::setUp in tests/image.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

tests/image_test.module, line 29
Helper module for the image tests.

Code

function image_test_reset() {

  // Keep track of calls to these operations
  $results = array(
    'load' => array(),
    'save' => array(),
    'settings' => array(),
    'resize' => array(),
    'rotate' => array(),
    'crop' => array(),
    'desaturate' => array(),
  );
  variable_set('image_test_results', $results);
}