function ToolkitTestTrait::imageTestGetAllCalls

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php \Drupal\Tests\Traits\Core\Image\ToolkitTestTrait::imageTestGetAllCalls()
  2. 10 core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php \Drupal\Tests\Traits\Core\Image\ToolkitTestTrait::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 ToolkitTestTrait::imageTestGetAllCalls()
ToolkitTestTrait::assertToolkitOperationsCalled in core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php
Assert that all of the specified image toolkit operations were called once.

File

core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php, line 72

Class

ToolkitTestTrait
Provides common methods for image toolkit kernel tests.

Namespace

Drupal\Tests\Traits\Core\Image

Code

protected function imageTestGetAllCalls() : array {
  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.