Skip to content

Commit

Permalink
Fix tests regression
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 4, 2024
1 parent 825fb4f commit ec4b837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Actions/Mail/AttachmentUploadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function test_run()

$result = $output->getOutput();

$this->assertSame(['Content-Type: application/json; charset=UTF-8'], $output->headers);
$this->assertContains('Content-Type: application/json; charset=UTF-8', $output->headers);
$this->assertSame('upload', $result['action']);
$this->assertTrue(strpos($result['exec'], 'this.add2attachment_list("rcmfile' . $file['id'] . '"') !== false);
$this->assertTrue(strpos($result['exec'], 'this.auto_save_start(false);') !== false);
Expand All @@ -67,7 +67,7 @@ public function test_run()

$result = $output->getOutput();

$this->assertSame(['Content-Type: application/json; charset=UTF-8'], $output->headers);
$this->assertContains('Content-Type: application/json; charset=UTF-8', $output->headers);
$this->assertSame('upload', $result['action']);
$this->assertTrue(strpos($result['exec'], 'this.display_message("The uploaded file exceeds the maximum size') !== false);
$this->assertTrue(strpos($result['exec'], 'this.auto_save_start(false);') !== false);
Expand Down

0 comments on commit ec4b837

Please sign in to comment.