You are here

protected function ToolkitTestBase::imageTestReset in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php \Drupal\FunctionalTests\Image\ToolkitTestBase::imageTestReset()
  2. 8 core/modules/system/src/Tests/Image/ToolkitTestBase.php \Drupal\system\Tests\Image\ToolkitTestBase::imageTestReset()
Same name and namespace in other branches
  1. 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/tests/Drupal/FunctionalTests/Image/ToolkitTestBase.php

File

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

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\FunctionalTests\Image

Code

protected 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);
}