diff --git a/tests/codeception/_support/WorkingSilex.php b/tests/codeception/_support/WorkingSilex.php
index <HASH>..<HASH> 100644
--- a/tests/codeception/_support/WorkingSilex.php
+++ b/tests/codeception/_support/WorkingSilex.php
@@ -26,6 +26,11 @@ class WorkingSilex extends Silex
     public function _before(TestInterface $test)
     {
         $this->reloadApp();
+    }
+
+    protected function loadApp()
+    {
+        parent::loadApp();
 
         $this->app->finish(function () {
             if ($this->app['mailer.initialized'] && $this->app['swiftmailer.use_spool'] && $this->app['swiftmailer.spooltransport'] instanceof \Swift_Transport_SpoolTransport) {
[Codeception] Move mailer hack to `loadApp` method to ensure it's always applied.