diff --git a/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php b/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php
index e97101d..660d6a1 100644
--- a/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php
+++ b/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php
@@ -194,6 +194,26 @@ function testNodeAlias() {
     $this->drupalGet($edit['path[alias]']);
     $this->assertNoText($node1->label(), 'Alias was successfully deleted.');
     $this->assertResponse(404);
+
+    // Create third test node.
+    $node3 = $this->drupalCreateNode();
+
+    // Set its path alias to an absolute path.
+    $edit = array('path[alias]' => '/' . $this->randomName(8));
+    $this->drupalPostForm('node/' . $node3->id() . '/edit', $edit, t('Save'));
+
+    // Confirm that the alias failed validation.
+    $this->assertText(t('The alias must be a relative path.'), 'Attempt to use an absolute path for a path alias was rejected.');
+
+    // Create fourth test node.
+    $node4 = $this->drupalCreateNode();
+
+    // Set its path alias to a path with a trailing slash.
+    $edit = array('path[alias]' => $this->randomName(8) . '/');
+    $this->drupalPostForm('node/' . $node4->id() . '/edit', $edit, t('Save'));
+
+    // Confirm that the alias failed validation.
+    $this->assertText(t('The alias must not have a trailing slash.'), 'Attempt to use a path with a trailing slash for a path alias was rejected.');
   }
 
   /**
