function ImageToolkitUnitTest::testSave in Drupal 7
Test the image_save() function.
File
- modules/
simpletest/ tests/ image.test, line 111 - Tests for core image handling API.
Class
- ImageToolkitUnitTest
- Test that the functions in image.inc correctly pass data to the toolkit.
Code
function testSave() {
$this
->assertFalse(image_save($this->image), 'Function returned the expected value.');
$this
->assertToolkitOperationsCalled(array(
'save',
));
}