diff --git a/tests/SprykerTest/Shared/Customer/_support/Helper/CustomerDataHelper.php b/tests/SprykerTest/Shared/Customer/_support/Helper/CustomerDataHelper.php index 43493a15..28dece3c 100644 --- a/tests/SprykerTest/Shared/Customer/_support/Helper/CustomerDataHelper.php +++ b/tests/SprykerTest/Shared/Customer/_support/Helper/CustomerDataHelper.php @@ -15,13 +15,11 @@ use Spryker\Zed\Customer\CustomerDependencyProvider; use Spryker\Zed\Customer\Dependency\Facade\CustomerToMailBridge; use Spryker\Zed\Mail\Business\MailFacadeInterface; -use SprykerTest\Shared\Testify\Helper\DataCleanupHelperTrait; use SprykerTest\Shared\Testify\Helper\DependencyHelperTrait; use SprykerTest\Shared\Testify\Helper\LocatorHelperTrait; class CustomerDataHelper extends Module { - use DataCleanupHelperTrait; use DependencyHelperTrait; use LocatorHelperTrait; @@ -39,10 +37,6 @@ public function haveCustomer(array $override = []): CustomerTransfer $this->getCustomerFacade()->registerCustomer($customerTransfer); - $this->getDataCleanupHelper()->_addCleanup(function () use ($customerTransfer) { - $this->getCustomerFacade()->deleteCustomer($customerTransfer); - }); - return $customerTransfer; }