We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ecdb4 commit e832cd7Copy full SHA for e832cd7
Test/Case/Lib/EmailLibTest.php
@@ -373,13 +373,10 @@ public function testAddEmbeddedBlobAttachment() {
373
374
$res = $this->Email->getProtected('attachments');
375
$keys = array_keys($res);
376
- $expected = [
377
- 'contentDisposition' => true,
378
- 'content' => file_get_contents($file),
379
- 'mimetype' => 'image/jpeg',
380
- 'contentId' => $cid,
381
- ];
382
- $this->assertTrue($res[$keys[count($keys) - 1]]['contentDisposition']);
+
+ $keyLastRecord = $keys[count($keys) - 1];
+ $this->assertSame('image/jpeg', $res[$keyLastRecord]['mimetype']);
+ $this->assertTrue($res[$keyLastRecord]['contentDisposition']);
383
}
384
385
/**
0 commit comments