You are here

function ToolkitTestBase::imageTestGetAllCalls in Zircon Profile 8

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

Gets an array of calls to the test toolkit.

Return value

array An array keyed by operation name ('parseFile', 'save', 'settings', 'resize', 'rotate', 'crop', 'desaturate') with values being arrays of parameters passed to each call.

10 calls to ToolkitTestBase::imageTestGetAllCalls()
ImageEffectsTest::testConvertEffect in core/modules/image/src/Tests/ImageEffectsTest.php
Tests the ConvertImageEffect plugin.
ImageEffectsTest::testCropEffect in core/modules/image/src/Tests/ImageEffectsTest.php
Test the image_crop_effect() function.
ImageEffectsTest::testDesaturateEffect in core/modules/image/src/Tests/ImageEffectsTest.php
Test the image_desaturate_effect() function.
ImageEffectsTest::testResizeEffect in core/modules/image/src/Tests/ImageEffectsTest.php
Test the image_resize_effect() function.
ImageEffectsTest::testRotateEffect in core/modules/image/src/Tests/ImageEffectsTest.php
Test the image_rotate_effect() function.

... See full list

File

core/modules/system/src/Tests/Image/ToolkitTestBase.php, line 155
Contains \Drupal\system\Tests\Image\ToolkitTestBase.

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\system\Tests\Image

Code

function imageTestGetAllCalls() {
  return \Drupal::state()
    ->get('image_test.results') ?: array();
}