function ToolkitTestBase::imageTestGetAllCalls
Same name in this branch
- 8.9.x core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\Image\ToolkitTestBase::imageTestGetAllCalls()
Same name in other branches
- 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\ImageCode
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.