You are here

public function ToolkitTestBase::imageTestGetAllCalls in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\Image\ToolkitTestBase::imageTestGetAllCalls()
  2. 8 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.

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

File

core/modules/system/src/Tests/Image/ToolkitTestBase.php, line 157

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\system\Tests\Image

Code

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