From 910d5bd2aa9735b7d0051ffbeca7695d9985ba5c Mon Sep 17 00:00:00 2001
From: Ted Bowman <41201-tedbow@users.noreply.drupalcode.org>
Date: Fri, 24 May 2024 14:30:10 +0000
Subject: [PATCH] Issue #3449636: Action module does not exist in Core 11.x so
 conversion script fails

---
 scripts/src/ConverterCommand.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/src/ConverterCommand.php b/scripts/src/ConverterCommand.php
index 6b099efbaf..1e651c66f8 100644
--- a/scripts/src/ConverterCommand.php
+++ b/scripts/src/ConverterCommand.php
@@ -742,11 +742,12 @@ class ConverterCommand extends Command {
   private static function copyGenericTest(string $new_module_path, string $core_dir): void {
     $parts = explode('/', $new_module_path);
     $module_name = array_pop($parts);
-    $original_test = "$core_dir/core/modules/action/tests/src/Functional/GenericTest.php";
+    $core_source_module = 'announcements_feed';
+    $original_test = "$core_dir/core/modules/$core_source_module/tests/src/Functional/GenericTest.php";
     $new_test = "$new_module_path/tests/src/Functional/GenericTest.php";
     $fs = new Filesystem();
     $fs->copy($original_test, $new_test);
-    static::replaceContents([new \SplFileInfo($new_test)], 'action', $module_name);
+    static::replaceContents([new \SplFileInfo($new_test)], $core_source_module, $module_name);
   }
 
   private function getContribModuleComposerJsonSection(string $section): array {
-- 
GitLab