function ToolkitTestBase::imageTestGetAllCalls

Same name in this branch
  1. 8.9.x core/modules/system/src/Tests/Image/ToolkitTestBase.php \Drupal\system\Tests\Image\ToolkitTestBase::imageTestGetAllCalls()
Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\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.

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

... See full list

File

core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php, line 154

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\FunctionalTests\Image

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.