function ToolkitTestBase::imageTestReset
Same name in this branch
- 8.9.x core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\Image\ToolkitTestBase::imageTestReset()
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\Image\ToolkitTestBase::imageTestReset()
Resets/initializes the history of calls to the test toolkit functions.
1 call to ToolkitTestBase::imageTestReset()
- ToolkitTestBase::setUp in core/
modules/ system/ src/ Tests/ Image/ ToolkitTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
-
core/
modules/ system/ src/ Tests/ Image/ ToolkitTestBase.php, line 130
Class
- ToolkitTestBase
- Base class for image manipulation testing.
Namespace
Drupal\system\Tests\ImageCode
public function imageTestReset() {
// Keep track of calls to these operations
$results = [
'parseFile' => [],
'save' => [],
'settings' => [],
'apply' => [],
'resize' => [],
'rotate' => [],
'crop' => [],
'desaturate' => [],
'create_new' => [],
'scale' => [],
'scale_and_crop' => [],
'convert' => [],
];
\Drupal::state()->set('image_test.results', $results);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.