From 5d80e94a5a6b820874757f06adcf60c7a46cf7d1 Mon Sep 17 00:00:00 2001 From: Pablo Molina Date: Mon, 22 Jul 2024 15:16:30 -0400 Subject: [PATCH] Make space for new lists when running tests --- tests/marketing-php/MarketingTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/marketing-php/MarketingTest.php b/tests/marketing-php/MarketingTest.php index a76bd5e..6001617 100644 --- a/tests/marketing-php/MarketingTest.php +++ b/tests/marketing-php/MarketingTest.php @@ -78,6 +78,11 @@ public function testAudienceLifecycle() $respA = $client->lists->getAllLists(); $this->assertTrue(is_array($respA->lists)); + // make space for a new list before creating it + foreach ($respA->lists as $list) { + $client->lists->deleteList($list->id); + } + // 2. Create new list $listName = "TestListPhpA" . time(); $respB = $client->lists->createList([