Skip to content

Commit e832cd7

Browse files
author
Mark Scherer
committed
Cleanup
1 parent 80ecdb4 commit e832cd7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Test/Case/Lib/EmailLibTest.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,10 @@ public function testAddEmbeddedBlobAttachment() {
373373

374374
$res = $this->Email->getProtected('attachments');
375375
$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']);
376+
377+
$keyLastRecord = $keys[count($keys) - 1];
378+
$this->assertSame('image/jpeg', $res[$keyLastRecord]['mimetype']);
379+
$this->assertTrue($res[$keyLastRecord]['contentDisposition']);
383380
}
384381

385382
/**

0 commit comments

Comments
 (0)