function ToolkitTestBase::imageTestGetAllCalls

Same name in this branch
  1. 8.9.x core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\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.

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') ?: [];
}

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