function ToolkitTestTrait::imageTestReset

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php \Drupal\Tests\Traits\Core\Image\ToolkitTestTrait::imageTestReset()
  2. 10 core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php \Drupal\Tests\Traits\Core\Image\ToolkitTestTrait::imageTestReset()

Resets/initializes the history of calls to the test toolkit functions.

File

core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php, line 22

Class

ToolkitTestTrait
Provides common methods for image toolkit kernel tests.

Namespace

Drupal\Tests\Traits\Core\Image

Code

protected function imageTestReset() : void {
  \Drupal::state()->delete('image_test.results');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.