function QuickEditImageControllerTest::testQuickEditImageControllerDeprecation

Tests class \Drupal\image\Controller\QuickEditImageController deprecation.

File

core/modules/image/tests/src/Kernel/QuickEditImageControllerTest.php, line 19

Class

QuickEditImageControllerTest
Tests class <a href="/api/drupal/core%21modules%21image%21src%21Controller%21QuickEditImageController.php/class/QuickEditImageController/9" title="Returns responses for our image routes." class="local">\Drupal\image\Controller\QuickEditImageController</a> deprecation.

Namespace

Drupal\Tests\image\Kernel

Code

public function testQuickEditImageControllerDeprecation() : void {
    $this->expectDeprecation('Drupal\\image\\Controller\\QuickEditImageController is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead, use Drupal\\quickedit\\QuickEditImageController. See https://www.drupal.org/node/3271848');
    new QuickEditImageController($this->container
        ->get('renderer'), $this->container
        ->get('image.factory'), $this->container
        ->get('tempstore.private'), $this->container
        ->get('entity_display.repository'), $this->container
        ->get('file_system'));
}

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