You are here

function ImageToolkitUnitTest::testSave in SimpleTest 7

Test the image_save() function.

File

tests/image.test, line 104
Unit tests for the Drupal Form 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), t('Function returned the expected value.'));
  $this
    ->assertToolkitOperationsCalled(array(
    'save',
  ));
}