From ec4b837783fbdacc84cf75051e6fa055bcdd2789 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 4 Aug 2024 10:59:56 +0200 Subject: [PATCH] Fix tests regression --- tests/Actions/Mail/AttachmentUploadTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Actions/Mail/AttachmentUploadTest.php b/tests/Actions/Mail/AttachmentUploadTest.php index bd534c33a0..6a229d0dd3 100644 --- a/tests/Actions/Mail/AttachmentUploadTest.php +++ b/tests/Actions/Mail/AttachmentUploadTest.php @@ -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); @@ -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);