You are here

function image_test_reset in Drupal 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 modules/simpletest/tests/image.test
Sets up a Drupal site for running functional and integration tests.

File

modules/simpletest/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);
}