diff --git a/core/modules/shortcut/tests/src/Kernel/ShortcutEntityTest.php b/core/modules/shortcut/tests/src/Kernel/ShortcutEntityTest.php
new file mode 100644
index 0000000..c2476679
--- /dev/null
+++ b/core/modules/shortcut/tests/src/Kernel/ShortcutEntityTest.php
@@ -0,0 +1,38 @@
+<?php
+
+namespace Drupal\Tests\shortcut\Kernel;
+
+use Drupal\KernelTests\KernelTestBase;
+use Drupal\shortcut\Entity\Shortcut;
+
+/**
+ * Tests shortcut entity.
+ *
+ * @group shortcut
+ */
+class ShortcutEntityTest extends KernelTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['system', 'shortcut', 'link'];
+
+  /**
+   * Tests that viewing a shortcut does not use a shortcut template.
+   */
+  public function testShortcutViewBuilder() {
+
+    $this->installConfig(['shortcut']);
+
+    $entity_type_manager = \Drupal::entityTypeManager();
+    $entity_type = $entity_type_manager->getDefinition('shortcut');
+    $this->assertTrue($entity_type->hasViewBuilderClass());
+
+    $shortcut = Shortcut::create(['shortcut_set' => 'default']);
+
+    $build = $entity_type_manager->getViewBuilder('shortcut')->view($shortcut);
+    $this->assertEquals($shortcut, $build['#shortcut']);
+    $this->assertFalse(array_key_exists('#theme', $build));
+  }
+
+}
