Skip to content

Commit

Permalink
Exit only if not in TEST_MODE
Browse files Browse the repository at this point in the history
We can't test this code if it exits.
  • Loading branch information
pabzm committed May 21, 2024
1 parent a239170 commit ec1155a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions program/actions/mail/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ public function run($args = [])
}
}

if (defined('ROUNDCUBE_TEST_MODE')) {
throw new Exception('simulatedExit');
}
exit;
}

Expand Down

0 comments on commit ec1155a

Please sign in to comment.