diff --git a/core/modules/user/lib/Drupal/user/Tests/Views/HandlerArgumentUserUidTest.php b/core/modules/user/lib/Drupal/user/Tests/Views/HandlerArgumentUserUidTest.php
index 9d0f30f..170cc4a 100644
--- a/core/modules/user/lib/Drupal/user/Tests/Views/HandlerArgumentUserUidTest.php
+++ b/core/modules/user/lib/Drupal/user/Tests/Views/HandlerArgumentUserUidTest.php
@@ -43,6 +43,11 @@ public function testArgumentTitle() {
     $this->executeView($view, array($account->uid));
     $this->assertEqual($view->getTitle(), $account->label());
     $view->destroy();
+
+    // Tests the anonymous user.
+    $this->executeView($view, array(0));
+    $this->assertEqual($view->getTitle(), config('user.settings')->get('anonymous'));
+    $view->destroy();
   }
 
 }
diff --git a/core/modules/user/user.views.inc b/core/modules/user/user.views.inc
index 9264381..07ef942 100644
--- a/core/modules/user/user.views.inc
+++ b/core/modules/user/user.views.inc
@@ -37,6 +37,7 @@ function user_views_data() {
     'argument' => array(
       'id' => 'user_uid',
       'name field' => 'name', // display this field in the summary
+      'empty field name' => config('user.settings')->get('anonymous'),
     ),
     'filter' => array(
       'title' => t('Name'),
