Allow saving forms without name

[MAILPOET-2450]
This commit is contained in:
Rostislav Wolny
2019-10-31 15:58:28 +01:00
committed by Jack Kitterhing
parent 96f71416b4
commit b0ef65a1eb
8 changed files with 21 additions and 28 deletions

View File

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