protected function InlineBlockPrivateFilesTest::createNewNodeRevision in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::createNewNodeRevision()
- 9 core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::createNewNodeRevision()
Create a new revision of the node.
Parameters
int $node_id: The node id.
File
- core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ InlineBlockPrivateFilesTest.php, line 283
Class
- InlineBlockPrivateFilesTest
- Test access to private files in block fields on the Layout Builder.
Namespace
Drupal\Tests\layout_builder\FunctionalJavascriptCode
protected function createNewNodeRevision($node_id) {
$node = Node::load($node_id);
$node
->setTitle('Update node');
$node
->setNewRevision();
$node
->save();
}