diff --git a/core/modules/node/src/NodeViewsData.php b/core/modules/node/src/NodeViewsData.php
index ab1e030..3c0d509 100644
--- a/core/modules/node/src/NodeViewsData.php
+++ b/core/modules/node/src/NodeViewsData.php
@@ -24,7 +24,7 @@ public function getViewsData() {
     $data['node_field_data']['table']['base']['access query tag'] = 'node_access';
     $data['node_field_data']['table']['wizard_id'] = 'node';
 
-    $data['node_field_data']['nid']['field']['argument'] = [
+    $data['node_field_data']['nid']['argument'] = [
       'id' => 'node_nid',
       'name field' => 'title',
       'numeric' => TRUE,
diff --git a/core/modules/node/src/Tests/Views/NidArgumentTest.php b/core/modules/node/src/Tests/Views/NidArgumentTest.php
new file mode 100644
index 0000000..aecc9bc
--- /dev/null
+++ b/core/modules/node/src/Tests/Views/NidArgumentTest.php
@@ -0,0 +1,114 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\node\Tests\Views\NidArgumentTest.
+ */
+
+namespace Drupal\node\Tests\Views;
+
+use Drupal\node\Entity\Node;
+use Drupal\views\Entity\View;
+use Drupal\views\Tests\ViewKernelTestBase;
+
+/**
+ * Tests the nid argument handler.
+ *
+ * @group node
+ * @see \Drupal\node\Plugin\views\argument\Nid
+ */
+class NidArgumentTest extends ViewKernelTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['node', 'field', 'text', 'node_test_config', 'user', 'entity_reference'];
+
+  /**
+   * The request stack used for testing.
+   *
+   * @var \Symfony\Component\HttpFoundation\RequestStack
+   */
+  protected $requestStack;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp($import_test_views = TRUE) {
+    parent::setUp($import_test_views);
+
+    $this->installEntitySchema('node');
+    $this->installEntitySchema('user');
+    $this->installConfig(['node', 'field']);
+  }
+
+  /**
+   * Test the nid argument.
+   */
+  public function testNidArgument() {
+    $view_id = $this->randomMachineName();
+    $view = View::create([
+      'id' => $view_id,
+      'base_table' => 'node_field_data',
+      'display' => [
+        'default' => [
+          'display_plugin' => 'page',
+          'id' => 'default',
+          'display_options' => [
+            'path' => 'test/%',
+            'fields' => [
+              'nid' => [
+                'table' => 'node_field_data',
+                'field' => 'nid',
+                'id' => 'nid',
+                'plugin_id' => 'field',
+              ],
+            ],
+            'arguments' => [
+              'nid' => [
+                'table' => 'node_field_data',
+                'field' => 'nid',
+                'id' => 'nid',
+                'plugin_id' => 'numeric',
+                'title_enable' => TRUE,
+                'title' => '%1',
+              ],
+            ],
+          ],
+        ],
+      ],
+    ]);
+
+    $node1 = Node::create([
+      'type' => 'default',
+      'title' => $this->randomMachineName(),
+    ]);
+    $node1->save();
+    $node2 = Node::create([
+      'type' => 'default',
+      'title' => $this->randomMachineName(),
+    ]);
+    $node2->save();
+
+    $executable = $view->getExecutable();
+
+    $executable->preview();
+    $this->assertEqual(count($executable->result), 2, 'Found the expected number of results.');
+
+    // Set an the second node id as an argument.
+    $executable->destroy();
+    $executable->preview('default', [$node2->id()]);
+    // Verify that the title is overridden.
+    $this->assertEqual($executable->getTitle(), $node2->getTitle());
+    // Verify that the argument filtering works.
+    $this->assertEqual(count($executable->result), 1, 'Found the expected number of results.');
+    $this->assertEqual($node2->id(), (string) $executable->style_plugin->getField(0, 'nid'), 'Found the correct nid.');
+
+    // Verify that setting a non-existing id as argument results in no nodes
+    // being shown.
+    $executable->destroy();
+    $executable->preview('default', [22]);
+    $this->assertEqual(count($executable->result), 0, 'Found the expected number of results.');
+  }
+
+}
