function ImageDeprecationTest::testToolkitArgumentInImageToolkitOperationConstructor

Tests ImageToolkitOperationBase::__construct().

File

core/tests/Drupal/Tests/Core/Image/ImageDeprecationTest.php, line 26

Class

ImageDeprecationTest
Tests deprecations of the image classes.

Namespace

Drupal\Tests\Core\Image

Code

public function testToolkitArgumentInImageToolkitOperationConstructor() : void {
  $this->expectDeprecation('The $toolkit argument of Drupal\\Core\\ImageToolkit\\ImageToolkitOperationBase::__construct is deprecated in drupal:11.4.0 and the argument is removed from drupal:13.0.0. Use ::setToolkit() instead. See https://www.drupal.org/node/3562304');
  new CreateNew([], '', [], $this->createStub(GDToolkit::class), $this->createStub(LoggerInterface::class));
}

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