function ToolkitTestTrait::imageTestGetAllCalls
Same name in other branches
- 9 core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php \Drupal\Tests\Traits\Core\Image\ToolkitTestTrait::imageTestGetAllCalls()
- 11.x 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.
12 calls to ToolkitTestTrait::imageTestGetAllCalls()
- ImageEffectsTest::testConvertEffect in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the 'image_convert' effect.
- ImageEffectsTest::testCropEffect in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the 'image_crop' effect.
- ImageEffectsTest::testDesaturateEffect in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the 'image_desaturate' effect.
- ImageEffectsTest::testResizeEffect in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the 'image_resize' effect.
- ImageEffectsTest::testRotateEffect in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the image_rotate_effect() function.
File
-
core/
tests/ Drupal/ Tests/ Traits/ Core/ Image/ ToolkitTestTrait.php, line 75
Class
- ToolkitTestTrait
- Provides common methods for image toolkit kernel tests.
Namespace
Drupal\Tests\Traits\Core\ImageCode
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.