function EditorDeprecationTest::testEditorImageDialog

Tests the deprecation of the Drupal\editor\Form\EditorImageDialog class.

See also

EditorImageDialog

File

core/modules/editor/tests/src/Kernel/EditorDeprecationTest.php, line 39

Class

EditorDeprecationTest
Tests the deprecations in Drupal\editor.

Namespace

Drupal\Tests\editor\Kernel

Code

public function testEditorImageDialog() : void {
    $this->expectDeprecation('Drupal\\editor\\Form\\EditorImageDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3291493');
    new EditorImageDialog($this->createMock('\\Drupal\\file\\FileStorage'));
}

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