You are here

protected function ToolkitTestBase::imageTestGetAllCalls in Drupal 9

Same name and namespace in other branches
  1. 8 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.

1 call to ToolkitTestBase::imageTestGetAllCalls()
ToolkitTestBase::assertToolkitOperationsCalled in core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php
Assert that all of the specified image toolkit operations were called exactly once once, other values result in failure.

File

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

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\FunctionalTests\Image

Code

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