Fix types by casting [MAILPOET-2488]
This commit is contained in:
@ -93,9 +93,9 @@ class SubscriberActionsTest extends \MailPoetTest {
|
||||
expect($newsletter_option_field->getErrors())->false();
|
||||
|
||||
$newsletter_option = NewsletterOption::create();
|
||||
$newsletter_option->option_field_id = $newsletter_option_field->id;
|
||||
$newsletter_option->option_field_id = (int)$newsletter_option_field->id;
|
||||
$newsletter_option->newsletter_id = $newsletter->id;
|
||||
$newsletter_option->value = $value;
|
||||
$newsletter_option->value = (string)$value;
|
||||
$newsletter_option->save();
|
||||
expect($newsletter_option->getErrors())->false();
|
||||
}
|
||||
@ -138,9 +138,9 @@ class SubscriberActionsTest extends \MailPoetTest {
|
||||
expect($newsletter_option_field->getErrors())->false();
|
||||
|
||||
$newsletter_option = NewsletterOption::create();
|
||||
$newsletter_option->option_field_id = $newsletter_option_field->id;
|
||||
$newsletter_option->option_field_id = (int)$newsletter_option_field->id;
|
||||
$newsletter_option->newsletter_id = $newsletter->id;
|
||||
$newsletter_option->value = $value;
|
||||
$newsletter_option->value = (string)$value;
|
||||
$newsletter_option->save();
|
||||
expect($newsletter_option->getErrors())->false();
|
||||
}
|
||||
|
Reference in New Issue
Block a user