diff --git a/core/tests/Drupal/FunctionalTests/Asset/UnversionedAssetTest.php b/core/tests/Drupal/FunctionalTests/Asset/UnversionedAssetTest.php index dcc7eb35c1..995d068792 100644 --- a/core/tests/Drupal/FunctionalTests/Asset/UnversionedAssetTest.php +++ b/core/tests/Drupal/FunctionalTests/Asset/UnversionedAssetTest.php @@ -55,7 +55,7 @@ public function testUnversionedAssets(): void { $url = $this->getAbsoluteUrl($href); // Not every script or style on a page is aggregated. if (!str_contains($url, $this->fileAssetsPath)) { - return; + continue; } $session = $this->getSession(); $session->visit($url); @@ -80,7 +80,7 @@ public function testUnversionedAssets(): void { $url = $this->getAbsoluteUrl($new_href); // Not every script or style on a page is aggregated. if (!str_contains($url, $this->fileAssetsPath)) { - return; + continue; } $session = $this->getSession(); $session->visit($url);