Allow saving forms without name
[MAILPOET-2450]
This commit is contained in:
committed by
Jack Kitterhing
parent
96f71416b4
commit
b0ef65a1eb
@ -22,15 +22,6 @@ class FormTest extends \MailPoetTest {
|
||||
expect($this->form->getErrors())->false();
|
||||
}
|
||||
|
||||
function testItHasToBeValid() {
|
||||
$invalid_form = Form::create();
|
||||
$result = $invalid_form->save();
|
||||
$errors = $result->getErrors();
|
||||
|
||||
expect(is_array($errors))->true();
|
||||
expect($errors[0])->equals('Please specify a name.');
|
||||
}
|
||||
|
||||
function testItCanBeGrouped() {
|
||||
$forms = Form::filter('groupBy', 'all')->findArray();
|
||||
expect($forms)->count(1);
|
||||
|
Reference in New Issue
Block a user