mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
Applied fixes from StyleCI (#177)
This commit is contained in:
parent
aafd84b0ce
commit
6513c12d8c
@ -3,7 +3,7 @@
|
|||||||
namespace Mailgun\Tests\Functional;
|
namespace Mailgun\Tests\Functional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add attachment with file from memory
|
* Add attachment with file from memory.
|
||||||
*
|
*
|
||||||
* @author Wim Verstuyf <wim.verstuyf@codelicious.be>
|
* @author Wim Verstuyf <wim.verstuyf@codelicious.be>
|
||||||
*/
|
*/
|
||||||
@ -32,19 +32,19 @@ class FileFromMemoryTest extends \PHPUnit_Framework_TestCase
|
|||||||
};
|
};
|
||||||
|
|
||||||
$attachments = [
|
$attachments = [
|
||||||
['filename' => 'file1.txt', 'fileContent' => "File content"],
|
['filename' => 'file1.txt', 'fileContent' => 'File content'],
|
||||||
['filename' => 'file2.txt', 'fileContent' => "File content 2"],
|
['filename' => 'file2.txt', 'fileContent' => 'File content 2'],
|
||||||
['filePath' => "./tests/TestAssets/text_file.txt", 'remoteName' => 'text_file.txt']
|
['filePath' => './tests/TestAssets/text_file.txt', 'remoteName' => 'text_file.txt'],
|
||||||
];
|
];
|
||||||
|
|
||||||
$mailgun = MockedMailgun::create($this, 'POST', 'domain/messages', [], $fileValidator);
|
$mailgun = MockedMailgun::create($this, 'POST', 'domain/messages', [], $fileValidator);
|
||||||
|
|
||||||
$mailgun->sendMessage('domain', array(
|
$mailgun->sendMessage('domain', [
|
||||||
'from' => 'bob@example.com',
|
'from' => 'bob@example.com',
|
||||||
'to' => 'alice@example.com',
|
'to' => 'alice@example.com',
|
||||||
'subject' => 'Foo',
|
'subject' => 'Foo',
|
||||||
'text' => 'Bar'), array(
|
'text' => 'Bar', ], [
|
||||||
'attachment' => $attachments
|
'attachment' => $attachments,
|
||||||
));
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user