diff --git a/core/tests/Drupal/FunctionalTests/Core/Recipe/CoreRecipesTest.php b/core/tests/Drupal/FunctionalTests/Core/Recipe/CoreRecipesTest.php
index 0d4c7f2669..40173ae1fe 100644
--- a/core/tests/Drupal/FunctionalTests/Core/Recipe/CoreRecipesTest.php
+++ b/core/tests/Drupal/FunctionalTests/Core/Recipe/CoreRecipesTest.php
@@ -28,12 +28,12 @@ class CoreRecipesTest extends BrowserTestBase {
   protected $defaultTheme = 'stark';
 
   /**
-   * The data provider for apply recipe test.
+   * Finds core recipes.
    *
    * @return iterable<array<string>>
    *   An iterable containing paths to recipe files.
    */
-  public static function providerApplyRecipe(): iterable {
+  protected function findRecipes(): iterable {
     $finder = Finder::create()
       ->in([
         static::getDrupalRoot() . '/core/recipes',
@@ -48,12 +48,9 @@ public static function providerApplyRecipe(): iterable {
     $scenarios = [];
     /** @var \Symfony\Component\Finder\SplFileInfo $recipe */
     foreach ($finder as $recipe) {
-      $name = $recipe->getBasename();
-      $scenarios[$name] = [
-        $recipe->getPathname(),
-      ];
+      $recipes[$recipe->getBasename()] = $recipe->getPathname();
     }
-    return $scenarios;
+    return $recipes;
   }
 
   /**
@@ -61,14 +58,15 @@ public static function providerApplyRecipe(): iterable {
    *
    * @param string $path
    *   The path to the recipe file.
-   *
-   * @dataProvider providerApplyRecipe
    */
-  public function testApplyRecipe(string $path): void {
+  public function testApplyRecipe(): void {
     $this->setUpCurrentUser(admin: TRUE);
-    $this->applyRecipe($path);
-    // Apply the recipe again to prove that it is idempotent.
-    $this->applyRecipe($path);
+
+    foreach ($this->findRecipes() as $path) {
+      $this->applyRecipe($path);
+      // Apply the recipe again to prove that it is idempotent.
+      $this->applyRecipe($path);
+    }
   }
 
 }
