You are here

function ToolkitTestBase::imageTestReset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Image/ToolkitTestBase.php \Drupal\system\Tests\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 128
Contains \Drupal\system\Tests\Image\ToolkitTestBase.

Class

ToolkitTestBase
Base class for image manipulation testing.

Namespace

Drupal\system\Tests\Image

Code

function imageTestReset() {

  // Keep track of calls to these operations
  $results = array(
    'parseFile' => array(),
    'save' => array(),
    'settings' => array(),
    'apply' => array(),
    'resize' => array(),
    'rotate' => array(),
    'crop' => array(),
    'desaturate' => array(),
    'create_new' => array(),
    'scale' => array(),
    'scale_and_crop' => array(),
    'convert' => array(),
  );
  \Drupal::state()
    ->set('image_test.results', $results);
}