Skip to content
Permalink
Browse files

Fix Email Test

LICENSE.txt not found
  • Loading branch information...
Dominik Schmelz
Dominik Schmelz committed Apr 16, 2018
1 parent 3630964 commit d52144cf73b933de9d9fe829104f3981caad77e6
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/Mailer/EmailTest.php
@@ -4,7 +4,7 @@
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* For full copyright and license information, please see the LICENSE
* Redistributions of files must retain the above copyright notice
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
@@ -879,13 +879,13 @@ public function testAttachments()
$this->Email->addAttachments([CORE_PATH . 'config' . DS . 'bootstrap.php']);
$this->Email->addAttachments([
'other.txt' => CORE_PATH . 'config' . DS . 'bootstrap.php',
'license' => CORE_PATH . 'LICENSE.txt'
'license' => CORE_PATH . 'LICENSE'
]);
$expected = [
'basics.php' => ['file' => CAKE . 'basics.php', 'mimetype' => 'text/plain'],
'bootstrap.php' => ['file' => CORE_PATH . 'config' . DS . 'bootstrap.php', 'mimetype' => 'text/x-php'],
'other.txt' => ['file' => CORE_PATH . 'config' . DS . 'bootstrap.php', 'mimetype' => 'text/x-php'],
'license' => ['file' => CORE_PATH . 'LICENSE.txt', 'mimetype' => 'text/plain']
'license' => ['file' => CORE_PATH . 'LICENSE', 'mimetype' => 'text/plain']
];
$this->assertSame($expected, $this->Email->getAttachments());
$this->expectException(\InvalidArgumentException::class);

0 comments on commit d52144c

Please sign in to comment.
You can’t perform that action at this time.