diff --git a/core/modules/node/lib/Drupal/node/Tests/SummaryLengthTest.php b/core/modules/node/lib/Drupal/node/Tests/SummaryLengthTest.php
index 61b725a..a115cc2 100644
--- a/core/modules/node/lib/Drupal/node/Tests/SummaryLengthTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/SummaryLengthTest.php
@@ -33,10 +33,11 @@ function testSummaryLength() {
 
     // Create user with permission to view the node.
     $web_user = $this->drupalCreateUser(array('access content', 'administer content types'));
-    $this->drupalLogin($web_user);
+    $this->loggedInUser = $web_user;
 
     // Attempt to access the front page.
-    $this->drupalGet("node");
+    $content = entity_render_controller('node')->view($node, 'teaser');
+    $this->drupalSetContent(drupal_render($content));
     // The node teaser when it has 600 characters in length
     $expected = 'What is a Drupalism?';
     $this->assertRaw($expected, 'Check that the summary is 600 characters in length', 'Node');
@@ -46,8 +47,12 @@ function testSummaryLength() {
     $instance['display']['teaser']['settings']['trim_length'] = 200;
     field_update_instance($instance);
 
-    // Attempt to access the front page again and check if the summary is now only 200 characters in length.
-    $this->drupalGet("node");
+    // Attempt to access the front page again and check if the summary is now
+    // only 200 characters in length.
+    $content = entity_render_controller('node')->view($node, 'teaser');
+    $this->drupalSetContent(drupal_render($content));
+    $this->assertText($node->label());
     $this->assertNoRaw($expected, 'Check that the summary is not longer than 200 characters', 'Node');
   }
+
 }
