diff --git a/core/modules/translation/tests/translation_test.module b/core/modules/translation/tests/translation_test.module index ac1397f..3b7fe76 100644 --- a/core/modules/translation/tests/translation_test.module +++ b/core/modules/translation/tests/translation_test.module @@ -11,5 +11,5 @@ * Implements hook_node_insert(). */ function translation_test_node_insert(EntityInterface $node) { - drupal_write_record('node', $node, 'nid'); + $node->save(); }