Update usages of form factory
[MAILPOET-2985]
This commit is contained in:
committed by
Veljko V
parent
7d62b15979
commit
c4628d4f78
@ -72,18 +72,6 @@ class FormsTest extends \MailPoetTest {
|
||||
expect($response->data['name'])->equals('');
|
||||
}
|
||||
|
||||
public function testItCanSaveAForm() {
|
||||
$formData = [
|
||||
'name' => 'My First Form',
|
||||
];
|
||||
|
||||
$response = $this->endpoint->save(Form::createOrUpdate($formData));
|
||||
expect($response->status)->equals(APIResponse::STATUS_OK);
|
||||
expect($response->data)->equals(
|
||||
Form::where('name', 'My First Form')->findOne()->asArray()
|
||||
);
|
||||
}
|
||||
|
||||
public function testItCanStoreDataForPreview() {
|
||||
$response = $this->endpoint->create();
|
||||
$formId = $response->data['id'];
|
||||
|
Reference in New Issue
Block a user