1.20.x image_test.module image_test_reset()

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

See also

image_test_get_all_calls()

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(),
  );
  state_set('image_test_results', $results);
}