Skip to content

Commit

Permalink
Merge pull request #8 from mgalang/patch-2
Browse files Browse the repository at this point in the history
Do not fail tests when user entity cleanup fails
  • Loading branch information
guncha25 committed Aug 7, 2020
2 parents 71a2409 + df6bb30 commit 0eadec9
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 0eadec9

Please sign in to comment.