function MediaDeprecationTest::testEditorLinkDialog

Tests the deprecation of the Drupal\media\Form\EditorMediaDialog class.

See also

EditorMediaDialog

File

core/modules/media/tests/src/Kernel/MediaDeprecationTest.php, line 28

Class

MediaDeprecationTest
Tests the deprecations in Drupal\media.

Namespace

Drupal\Tests\media\Kernel

Code

public function testEditorLinkDialog() : void {
    $this->expectDeprecation('Drupal\\media\\Form\\EditorMediaDialog 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 EditorMediaDialog($this->createMock('\\Drupal\\Core\\Entity\\EntityRepository'), $this->createMock('\\Drupal\\Core\\Entity\\EntityDisplayRepository'));
}

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