function ToolkitTestBase::imageTestGetAllCalls

Same name and namespace in other branches
  1. 8.9.x core/modules/system/src/Tests/Image/ToolkitTestBase.php \Drupal\system\Tests\Image\ToolkitTestBase::imageTestGetAllCalls()
  2. 8.9.x 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
Tests that only allowed image toolkit operations are called.

File

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

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\FunctionalTests\Image

Code

protected 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.