function NodeDeprecationTest::testNodeRevisionDeleteDeprecation
Tests the deprecation of node_revision_delete.
See also
File
-
core/
modules/ node/ tests/ src/ Kernel/ NodeDeprecationTest.php, line 42
Class
- NodeDeprecationTest
- Tests the deprecations in the node.module file.
Namespace
Drupal\Tests\node\KernelCode
public function testNodeRevisionDeleteDeprecation() : void {
$this->installEntitySchema('node');
$this->expectDeprecation('node_revision_delete is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Entity\\RevisionableStorageInterface::deleteRevision instead. See https://www.drupal.org/node/3294237');
node_revision_delete(1);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.