Add NOT NULL constraint to custom field value field type
This commit is contained in:
@@ -827,6 +827,7 @@ class SubscriberTest extends \MailPoetTest {
|
||||
$subscriber_custom_field->subscriber_id = ($custom_field !== 5) ?
|
||||
$subscriber->id :
|
||||
100; // create one record with a nonexistent subscriber id
|
||||
$subscriber_custom_field->value = 'somevalue';
|
||||
$subscriber_custom_field->save();
|
||||
}
|
||||
expect(SubscriberCustomField::findMany())->count(5);
|
||||
@@ -1170,4 +1171,4 @@ class SubscriberTest extends \MailPoetTest {
|
||||
\ORM::raw_execute('TRUNCATE ' . SendingQueue::$_table);
|
||||
\ORM::raw_execute('TRUNCATE ' . Setting::$_table);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user