Browse Source

Fixed test break using file transport.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
c22409e397
  1. 2
      tests/unit/VendorTestCase.php
  2. 4
      tests/unit/extensions/swiftmailer/MessageTest.php

2
tests/unit/VendorTestCase.php

@ -27,4 +27,4 @@ class VendorTestCase extends TestCase
throw new NotSupportedException("Vendor autoload file '{$vendorAutoload}' is missing."); throw new NotSupportedException("Vendor autoload file '{$vendorAutoload}' is missing.");
} }
} }
} }

4
tests/unit/extensions/swiftmailer/MessageTest.php

@ -56,7 +56,9 @@ class MessageTest extends VendorTestCase
*/ */
protected function createTestEmailComponent() protected function createTestEmailComponent()
{ {
$component = new Mailer(); $component = new Mailer([
'useFileTransport' => true,
]);
return $component; return $component;
} }

Loading…
Cancel
Save