Skip to content

Commit

Permalink
Do not fail tests when user entity cleanup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mgalang authored Aug 7, 2020
1 parent 71a2409 commit df6bb30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Codeception/Module/DrupalUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ private function userCleanup() {
/** @var \Drupal\user\Entity\User $user */
foreach ($users as $user) {
$this->deleteUsersContent($user->id());
$user->delete();
try {
$user->delete();
} catch (\Exception $e) {
continue;
}
}
}
}
Expand Down

0 comments on commit df6bb30

Please sign in to comment.