You are here

function ToolkitTest::testSave in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Image/ToolkitTest.php \Drupal\system\Tests\Image\ToolkitTest::testSave()

Test the image_save() function.

File

core/modules/system/src/Tests/Image/ToolkitTest.php, line 41
Contains \Drupal\system\Tests\Image\ToolkitTest.

Class

ToolkitTest
Tests image toolkit functions.

Namespace

Drupal\system\Tests\Image

Code

function testSave() {
  $this
    ->assertFalse($this->image
    ->save(), 'Function returned the expected value.');
  $this
    ->assertToolkitOperationsCalled(array(
    'save',
  ));
}