diff --git a/core/modules/user/src/Tests/UserFieldsTest.php b/core/modules/user/src/Tests/UserFieldsTest.php index 48f5ff3..e32d6a9 100644 --- a/core/modules/user/src/Tests/UserFieldsTest.php +++ b/core/modules/user/src/Tests/UserFieldsTest.php @@ -48,7 +48,7 @@ function testUserFields() { 'mail' => 'foobar@example.com', ]); $build = user_view($user); - $output = drupal_render($build); + $output = \Drupal::service('renderer')->render($build); $this->setRawContent($output); $userEmail = $user->getEmail(); $this->assertText($userEmail, 'User\'s mail field is found in the twig template'); diff --git a/core/modules/user/tests/themes/user_test_theme/user.html.twig b/core/modules/user/tests/themes/user_test_theme/user.html.twig index 717aa87..f6663db 100644 --- a/core/modules/user/tests/themes/user_test_theme/user.html.twig +++ b/core/modules/user/tests/themes/user_test_theme/user.html.twig @@ -1,7 +1,7 @@ {# /** * @file - * Default theme implementation to present all user data. + * Theme override for testing presence all user data. * * This template is used when viewing a registered user's page, * e.g., example.com/user/123. 123 being the user's ID. @@ -19,8 +19,6 @@ * - attributes: HTML attributes for the container element. * * @see template_preprocess_user() - * - * @ingroup themeable */ #}