
| Current Path : /var/www/html/rocksensor1/web/core/modules/editor/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/editor/tests/src/Kernel/EditorDeprecationTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\editor\Kernel;
use Drupal\editor\Form\EditorImageDialog;
use Drupal\editor\Form\EditorLinkDialog;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests the deprecations in Drupal\editor.
*
* @group editor
* @group legacy
*/
class EditorDeprecationTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = ['editor'];
/**
* Tests the deprecation of the Drupal\editor\Form\EditorLinkDialog class.
*
* @see EditorLinkDialog
*/
public function testEditorLinkDialog(): void {
$this->expectDeprecation('Drupal\editor\Form\EditorLinkDialog 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 EditorLinkDialog();
}
/**
* Tests the deprecation of the Drupal\editor\Form\EditorImageDialog class.
*
* @see EditorImageDialog
*/
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'));
}
}