function ToolkitTestTrait::imageTestGetAllCalls
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php \Drupal\Tests\Traits\Core\Image\ToolkitTestTrait::imageTestGetAllCalls()
- 10 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.
14 calls to ToolkitTestTrait::imageTestGetAllCalls()
- ImageEffectsTest::testConvertAvifEffect in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the 'image_convert_avif' effect when avif is supported.
- ImageEffectsTest::testConvertAvifEffectFallback in core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php - Tests the 'image_convert_avif' effect with webp fallback.
- 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.
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.