function NodeDeprecationTest::testNodeRevisionDeleteFormConstructorDeprecation
Same name in other branches
- 11.x core/modules/node/tests/src/Kernel/NodeDeprecationTest.php \Drupal\Tests\node\Kernel\NodeDeprecationTest::testNodeRevisionDeleteFormConstructorDeprecation()
Tests the deprecation of NodeRevisionDeleteForm constructor.
File
-
core/
modules/ node/ tests/ src/ Kernel/ NodeDeprecationTest.php, line 62
Class
- NodeDeprecationTest
- Tests the deprecations in the node.module file.
Namespace
Drupal\Tests\node\KernelCode
public function testNodeRevisionDeleteFormConstructorDeprecation() : void {
$this->expectDeprecation('Calling Drupal\\node\\Form\\NodeRevisionDeleteForm::_construct() with the $connection argument is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3343754');
new NodeRevisionDeleteForm($this->createMock(EntityStorageInterface::class), $this->createMock(EntityStorageInterface::class), $this->createMock(Connection::class), $this->createMock(DateFormatterInterface::class));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.