Fix types by casting [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-26 18:03:32 +03:00
committed by amine-mp
parent c493a43c35
commit bd1a84c5c3
25 changed files with 41 additions and 41 deletions

View File

@ -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();
}