diff --git a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php index 0e06fbd..a3ce548 100644 --- a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php +++ b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\views_ui\Tests\ViewListControllerTest + * Contains \Drupal\views_ui\Tests\ViewListControllerTest. */ namespace Drupal\views_ui\Tests { @@ -102,7 +102,9 @@ public function testBuildRowEntityList() { // @todo Remove this once t() is converted to a service. namespace { - function t($string) { - return $string; + if (!function_exists('t')) { + function t($string) { + return $string; + } } }