Extract customer creation/cleanup

This also ensures that cleanup always runs after all integration tests

MAILPOET-5145
This commit is contained in:
John Oleksowicz
2023-03-30 17:32:00 -05:00
committed by John Oleksowicz
parent f9d6e65ece
commit cd0b795ac8
75 changed files with 142 additions and 99 deletions

View File

@@ -237,6 +237,7 @@ class ViewInBrowserControllerTest extends \MailPoetTest {
}
public function _after() {
parent::_after();
// reset WP user role
$wpUser = wp_get_current_user();
$wpUser->add_role('administrator');