diff --git a/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php b/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php
index 5c8fbbb..7c92873 100644
--- a/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php
+++ b/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php
@@ -76,10 +76,6 @@ function setUp() {
    */
   function testLogging() {
     $path = 'node/' . $this->node->id();
-    $expected = array(
-      'title' => $this->node->label(),
-      'path' => $path,
-    );
 
     // Verify logging of an uncached page.
     $this->drupalGet($path);
