Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-06-02 12:30:46 +0300
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-06-09 11:44:10 +0300
commit8ab106ef481061df07d1bf975c16ef4e61473d93 (patch)
tree43dcb8f1acb47b9ddf203609facd7ace52fe2aca /tests
parent205bcb7f842bf64f68a1b39dac98bbf3e83c4856 (diff)
Better signature detection: always store the HTML version for the CKeditor body.
Adapt composer body frontend to new migration. Change migration editor_body to text. Fix composerData.editorBody for Composer. Handle input event on editor plain text and editor rich text in the same way. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! fix editorBody if it is null Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration was addad Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Change migration editor_body to text Fix composerData.editorBody for Composer Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! set editorBody back Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! version info.xml Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Better signature detection: always store the HTML version for the CKeditor body. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Better signature detection: always store the HTML version for the CKeditor body. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Better signature detection: always store the HTML version for the CKeditor body. Adapt composer body frontend to new migration. Change migration editor_body to text. Fix composerData.editorBody for Composer. Handle input event on editor plain text and editor rich text in the same way. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! fix editorBody if it is null Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration was addad Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Change migration editor_body to text Fix composerData.editorBody for Composer Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! set editorBody back Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! version info.xml Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Better signature detection: always store the HTML version for the CKeditor body. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/OutboxControllerTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Unit/Controller/OutboxControllerTest.php b/tests/Unit/Controller/OutboxControllerTest.php
index 24f0ababb..688c3bc21 100644
--- a/tests/Unit/Controller/OutboxControllerTest.php
+++ b/tests/Unit/Controller/OutboxControllerTest.php
@@ -271,6 +271,7 @@ class OutboxControllerTest extends TestCase {
$message->setAliasId(2);
$message->setSubject('subject');
$message->setBody('message');
+ $message->setEditorBody('<p>message</p>');
$message->setHtml(true);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
@@ -291,6 +292,7 @@ class OutboxControllerTest extends TestCase {
$message->getAccountId(),
$message->getSubject(),
$message->getBody(),
+ '<p>message</p>',
$message->isHtml(),
$to,
$cc,
@@ -310,6 +312,7 @@ class OutboxControllerTest extends TestCase {
$message->setAliasId(2);
$message->setSubject('subject');
$message->setBody('message');
+ $message->setEditorBody('<p>message</p>');
$message->setHtml(true);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
@@ -328,6 +331,7 @@ class OutboxControllerTest extends TestCase {
$message->getAccountId(),
$message->getSubject(),
$message->getBody(),
+ '<p>message</p>',
$message->isHtml(),
$to,
$cc,
@@ -345,6 +349,7 @@ class OutboxControllerTest extends TestCase {
$message->setAliasId(2);
$message->setSubject('subject');
$message->setBody('message');
+ $message->setEditorBody('<p>message</p>');
$message->setHtml(true);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
@@ -363,6 +368,7 @@ class OutboxControllerTest extends TestCase {
$message->getAccountId(),
$message->getSubject(),
$message->getBody(),
+ '<p>message</p>',
$message->isHtml(),
$to,
$cc,
@@ -381,6 +387,7 @@ class OutboxControllerTest extends TestCase {
$message->setAliasId(2);
$message->setSubject('subject');
$message->setBody('message');
+ $message->setEditorBody('<p>message</p>');
$message->setHtml(true);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
@@ -408,6 +415,7 @@ class OutboxControllerTest extends TestCase {
$message->getAccountId(),
$message->getSubject(),
$message->getBody(),
+ '<p>message</p>',
$message->isHtml(),
false,
$to,
@@ -428,6 +436,7 @@ class OutboxControllerTest extends TestCase {
$message->setAliasId(2);
$message->setSubject('subject');
$message->setBody('message');
+ $message->setEditorBody('<p>message</p>');
$message->setHtml(true);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
@@ -450,6 +459,7 @@ class OutboxControllerTest extends TestCase {
$message->getAccountId(),
$message->getSubject(),
$message->getBody(),
+ '<p>message</p>',
$message->isHtml(),
false,
$to,
@@ -470,6 +480,7 @@ class OutboxControllerTest extends TestCase {
$message->setAliasId(2);
$message->setSubject('subject');
$message->setBody('message');
+ $message->setEditorBody('<p>message</p>');
$message->setHtml(true);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
@@ -497,6 +508,7 @@ class OutboxControllerTest extends TestCase {
$message->getAccountId(),
$message->getSubject(),
$message->getBody(),
+ '<p>message</p>',
$message->isHtml(),
false,
$to,