
| Current Path : /var/www/html/rocksensor1/web/core/modules/media/tests/src/Kernel/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/media/tests/src/Kernel/MediaDeprecationTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\media\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\media\Form\EditorMediaDialog;
/**
* Tests the deprecations in Drupal\media.
*
* @group media
* @group legacy
*/
class MediaDeprecationTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = ['media'];
/**
* Tests the deprecation of the Drupal\media\Form\EditorMediaDialog class.
*
* @see EditorMediaDialog
*/
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'));
}
}