Update default form name spelling
[MAILPOET-2592]
This commit is contained in:
committed by
Rostislav Wolný
parent
2863cf9d93
commit
02a924ed28
@ -16,7 +16,7 @@ class DefaultForm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getName() {
|
public function getName() {
|
||||||
return WPFunctions::get()->_x('My first form', 'default name of form (GDPR friendly) to capture emails', 'mailpoet');
|
return WPFunctions::get()->_x('My First Form', 'default name of form (GDPR friendly) to capture emails', 'mailpoet');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getBody() {
|
public function getBody() {
|
||||||
|
@ -46,7 +46,7 @@ class ReinstallFromScratchCest {
|
|||||||
$I->seeInCurrentUrl('#/new');
|
$I->seeInCurrentUrl('#/new');
|
||||||
// Check forms
|
// Check forms
|
||||||
$I->amOnMailpoetPage('Forms');
|
$I->amOnMailpoetPage('Forms');
|
||||||
$I->waitForText('My first form', 30, '[data-automation-id="listing_item_1"]');
|
$I->waitForText('My First Form', 30, '[data-automation-id="listing_item_1"]');
|
||||||
$I->seeNumberOfElements('[data-automation-id^=listing_item_]', 1);
|
$I->seeNumberOfElements('[data-automation-id^=listing_item_]', 1);
|
||||||
// Check lists
|
// Check lists
|
||||||
$I->amOnMailpoetPage('Lists');
|
$I->amOnMailpoetPage('Lists');
|
||||||
|
@ -68,13 +68,13 @@ class FormsTest extends \MailPoetTest {
|
|||||||
|
|
||||||
public function testItCanSaveAForm() {
|
public function testItCanSaveAForm() {
|
||||||
$form_data = [
|
$form_data = [
|
||||||
'name' => 'My first form',
|
'name' => 'My First Form',
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = $this->endpoint->save($form_data);
|
$response = $this->endpoint->save($form_data);
|
||||||
expect($response->status)->equals(APIResponse::STATUS_OK);
|
expect($response->status)->equals(APIResponse::STATUS_OK);
|
||||||
expect($response->data)->equals(
|
expect($response->data)->equals(
|
||||||
Form::where('name', 'My first form')->findOne()->asArray()
|
Form::where('name', 'My First Form')->findOne()->asArray()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user