diff --git a/packages/php/email-editor/tests/_support/IntegrationTester.php b/packages/php/email-editor/tests/_support/IntegrationTester.php index 59b4e0df00..172da5ba06 100644 --- a/packages/php/email-editor/tests/_support/IntegrationTester.php +++ b/packages/php/email-editor/tests/_support/IntegrationTester.php @@ -1,4 +1,4 @@ -deleteWordPressTerms(); - $this->deleteCreatedComments(); $this->deletePosts(); } @@ -50,20 +48,4 @@ class IntegrationTester extends \Codeception\Actor wp_delete_post($post->ID, true); } } - - private function deleteWordPressTerms(): void { - foreach ($this->wpTermIds as $taxonomy => $termIds) { - foreach ($termIds as $termId) { - wp_delete_term($termId, $taxonomy); - } - } - $this->wpTermIds = []; - } - - private function deleteCreatedComments() { - foreach ($this->createdCommentIds as $commentId) { - wp_delete_comment($commentId, true); - } - $this->createdCommentIds = []; - } }