Test the image_save() function.
File
- drupal/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTest.php, line 46
- Definition of Drupal\system\Tests\Image\ToolkitTest.
Class
- ToolkitTest
- Test that the functions in image.inc correctly pass data to the toolkit.
Namespace
Drupal\system\Tests\Image
Code
function testSave() {
$this
->assertFalse(image_save($this->image), 'Function returned the expected value.');
$this
->assertToolkitOperationsCalled(array(
'save',
));
}