Commit e552920f authored by webchick's avatar webchick

Issue #2062363 by sergeypavlenko: Remove calls to deprecated global in...

Issue #2062363 by sergeypavlenko: Remove calls to deprecated global  in core/modules/system/tests/modules/form_test()/form_test().module.
parent ecd0aecc
......@@ -2263,7 +2263,7 @@ function form_test_user_register_form_rebuild($form, &$form_state) {
* Menu callback that returns two instances of the node form.
*/
function form_test_two_instances() {
global $user;
$user = Drupal::currentUser();
$node1 = entity_create('node', array(
'uid' => $user->id(),
'name' => $user->getUsername(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment