better config setup
This commit is contained in:
@@ -142,11 +142,14 @@ class ContactUsFormSubmissionsControllerTest extends TestCase
|
||||
Configure::write('ContactUs', [
|
||||
'fields' => [
|
||||
'captcha' => false,
|
||||
'email' => [
|
||||
'confirmation' => true,
|
||||
'backend' => [
|
||||
'to' => 'test@example.com',
|
||||
],
|
||||
'email' => true,
|
||||
],
|
||||
'email' => [
|
||||
'mailerClass' => 'CakeContactUs.ContactUsFormSubmissions',
|
||||
'confirmation' => true, // true or false
|
||||
'backend' => [ // array with enabled and the to/cc/bcc/ fields as strings or arrays
|
||||
'enabled' => true,
|
||||
'to' => 'test@example.com',
|
||||
],
|
||||
],
|
||||
]);
|
||||
@@ -193,9 +196,14 @@ class ContactUsFormSubmissionsControllerTest extends TestCase
|
||||
Configure::write('ContactUs', [
|
||||
'fields' => [
|
||||
'captcha' => false,
|
||||
'email' => [
|
||||
'confirmation' => true,
|
||||
'backend' => false,
|
||||
'email' => true,
|
||||
],
|
||||
'email' => [
|
||||
'mailerClass' => 'CakeContactUs.ContactUsFormSubmissions',
|
||||
'confirmation' => true, // true or false
|
||||
'backend' => [ // array with enabled and the to/cc/bcc/ fields as strings or arrays
|
||||
'enabled' => false,
|
||||
'to' => 'test@example.com',
|
||||
],
|
||||
],
|
||||
]);
|
||||
@@ -236,11 +244,14 @@ class ContactUsFormSubmissionsControllerTest extends TestCase
|
||||
Configure::write('ContactUs', [
|
||||
'fields' => [
|
||||
'captcha' => false,
|
||||
'email' => [
|
||||
'confirmation' => false,
|
||||
'backend' => [
|
||||
'to' => 'test@example.com',
|
||||
],
|
||||
'email' => true,
|
||||
],
|
||||
'email' => [
|
||||
'mailerClass' => 'CakeContactUs.ContactUsFormSubmissions',
|
||||
'confirmation' => false, // true or false
|
||||
'backend' => [ // array with enabled and the to/cc/bcc/ fields as strings or arrays
|
||||
'enabled' => true,
|
||||
'to' => 'test@example.com',
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
@@ -63,9 +63,14 @@ Configure::write('debug', true);
|
||||
Configure::write('ContactUs', [
|
||||
'fields' => [
|
||||
'captcha' => false,
|
||||
'email' => [
|
||||
'confirmation' => false,
|
||||
'backend' => false,
|
||||
'email' => true,
|
||||
],
|
||||
'email' => [
|
||||
'mailerClass' => 'CakeContactUs.ContactUsFormSubmissions',
|
||||
'confirmation' => false, // true or false
|
||||
'backend' => [ // array with enabled and the to/cc/bcc/ fields as strings or arrays
|
||||
'enabled' => false,
|
||||
'to' => 'test@example.com',
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user