Enforce array trailling commas

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 11:52:21 +02:00
committed by M. Shull
parent fcf5fe1d5d
commit b9af15e19f
117 changed files with 1791 additions and 1829 deletions

View File

@@ -124,11 +124,11 @@ class FormTest extends \MailPoetTest {
function testItUpdatesSuccessMessagesWhenConfirmationIsDisabled() {
$default = Form::createOrUpdate([
'name' => 'with default message',
'settings' => ['success_message' => Form::MESSAGE_WHEN_CONFIRMATION_ENABLED]
'settings' => ['success_message' => Form::MESSAGE_WHEN_CONFIRMATION_ENABLED],
]);
$custom = Form::createOrUpdate([
'name' => 'with custom message',
'settings' => ['success_message' => 'Thanks for joining us!']
'settings' => ['success_message' => 'Thanks for joining us!'],
]);
$this->settings->set('signup_confirmation.enabled', '0');
Form::updateSuccessMessages();
@@ -141,11 +141,11 @@ class FormTest extends \MailPoetTest {
function testItUpdatesSuccessMessagesWhenConfirmationIsEnabled() {
$default = Form::createOrUpdate([
'name' => 'with default message',
'settings' => ['success_message' => Form::MESSAGE_WHEN_CONFIRMATION_DISABLED]
'settings' => ['success_message' => Form::MESSAGE_WHEN_CONFIRMATION_DISABLED],
]);
$custom = Form::createOrUpdate([
'name' => 'with custom message',
'settings' => ['success_message' => 'Thanks for joining us!']
'settings' => ['success_message' => 'Thanks for joining us!'],
]);
$this->settings->set('signup_confirmation.enabled', '1');
Form::updateSuccessMessages();