diff --git a/core/modules/system/src/Tests/Cache/AssertPageCacheTagsTrait.php b/core/modules/system/src/Tests/Cache/AssertPageCacheTagsTrait.php index bfed1df..86192ed 100644 --- a/core/modules/system/src/Tests/Cache/AssertPageCacheTagsTrait.php +++ b/core/modules/system/src/Tests/Cache/AssertPageCacheTagsTrait.php @@ -35,6 +35,7 @@ protected function enablePageCaching() { * The expected cache tags for the page cache entry of the given $path. */ protected function assertPageCacheTags(Url $url, $expected_tags) { + sort($expected_tags); $this->drupalGet($url->setAbsolute()->toString()); $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS'); $actual_tags = explode(' ', $this->drupalGetHeader('X-Drupal-Cache-Tags'));