function image_test_reset

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.