From c22409e397fa724de5ce7e0e4582ca1093a6f2e0 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 28 Nov 2013 09:22:08 -0500 Subject: [PATCH] Fixed test break using file transport. --- tests/unit/VendorTestCase.php | 2 +- tests/unit/extensions/swiftmailer/MessageTest.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/VendorTestCase.php b/tests/unit/VendorTestCase.php index 2002cb3..71a2648 100644 --- a/tests/unit/VendorTestCase.php +++ b/tests/unit/VendorTestCase.php @@ -27,4 +27,4 @@ class VendorTestCase extends TestCase throw new NotSupportedException("Vendor autoload file '{$vendorAutoload}' is missing."); } } -} \ No newline at end of file +} diff --git a/tests/unit/extensions/swiftmailer/MessageTest.php b/tests/unit/extensions/swiftmailer/MessageTest.php index 1f55cc6..31a5c43 100644 --- a/tests/unit/extensions/swiftmailer/MessageTest.php +++ b/tests/unit/extensions/swiftmailer/MessageTest.php @@ -56,7 +56,9 @@ class MessageTest extends VendorTestCase */ protected function createTestEmailComponent() { - $component = new Mailer(); + $component = new Mailer([ + 'useFileTransport' => true, + ]); return $component; }