From c77311b14c81b6feff57c22a28f2fcc1471cb094 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Thu, 20 Mar 2025 13:46:43 -0400 Subject: [PATCH] ISTWCMS-7189: Fix test url generator tests --- acceptance/WcmsTestsUrlAliasCest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/acceptance/WcmsTestsUrlAliasCest.php b/acceptance/WcmsTestsUrlAliasCest.php index aa955265..1f8f17a4 100644 --- a/acceptance/WcmsTestsUrlAliasCest.php +++ b/acceptance/WcmsTestsUrlAliasCest.php @@ -285,9 +285,11 @@ class WcmsTestsUrlAliasCest { } } - // Step through each of the nodes used and delete them. - foreach ($this->nodesUsed as $node) { + // Step through each of the nodes used and delete them + // as well as delete it from the nodes used array. + foreach ($this->nodesUsed as $title => $node) { $node->delete(); + unset($this->nodesUsed[$title]); } } -- GitLab