function NodeDeprecationTest::testNodeTypeUpdateNodesDeprecation

Same name in other branches
  1. 10 core/modules/node/tests/src/Kernel/NodeDeprecationTest.php \Drupal\Tests\node\Kernel\NodeDeprecationTest::testNodeTypeUpdateNodesDeprecation()

Tests the deprecation of node_type_update_nodes.

See also

node_type_update_nodes()

File

core/modules/node/tests/src/Kernel/NodeDeprecationTest.php, line 51

Class

NodeDeprecationTest
Tests the deprecations in the node.module file.

Namespace

Drupal\Tests\node\Kernel

Code

public function testNodeTypeUpdateNodesDeprecation() : void {
    $this->installEntitySchema('node');
    $this->expectDeprecation('node_type_update_nodes is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Entity\\EntityStorageInterface::updateType instead. See https://www.drupal.org/node/3294237');
    node_type_update_nodes(1, 2);
}

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