|
|
@@ -26,11 +26,11 @@ class ContactFormCest
|
|
|
public function submitFormWithIncorrectEmail(\FunctionalTester $I)
|
|
|
{
|
|
|
$I->submitForm('#contact-form', [
|
|
|
- 'ContactForm[name]' => 'tester',
|
|
|
- 'ContactForm[email]' => 'tester.email',
|
|
|
- 'ContactForm[subject]' => 'test subject',
|
|
|
- 'ContactForm[body]' => 'test content',
|
|
|
- 'ContactForm[verifyCode]' => 'testme',
|
|
|
+ 'ContactForm[name]' => 'tester',
|
|
|
+ 'ContactForm[email]' => 'tester.email',
|
|
|
+ 'ContactForm[subject]' => 'test subject',
|
|
|
+ 'ContactForm[body]' => 'test content',
|
|
|
+ 'ContactForm[verifyCode]' => 'testme',
|
|
|
]);
|
|
|
$I->expectTo('see that email address is wrong');
|
|
|
$I->dontSee('Name cannot be blank', '.help-inline');
|
|
|
@@ -43,11 +43,11 @@ class ContactFormCest
|
|
|
public function submitFormSuccessfully(\FunctionalTester $I)
|
|
|
{
|
|
|
$I->submitForm('#contact-form', [
|
|
|
- 'ContactForm[name]' => 'tester',
|
|
|
- 'ContactForm[email]' => 'tester@example.com',
|
|
|
- 'ContactForm[subject]' => 'test subject',
|
|
|
- 'ContactForm[body]' => 'test content',
|
|
|
- 'ContactForm[verifyCode]' => 'testme',
|
|
|
+ 'ContactForm[name]' => 'tester',
|
|
|
+ 'ContactForm[email]' => 'tester@example.com',
|
|
|
+ 'ContactForm[subject]' => 'test subject',
|
|
|
+ 'ContactForm[body]' => 'test content',
|
|
|
+ 'ContactForm[verifyCode]' => 'testme',
|
|
|
]);
|
|
|
$I->seeEmailIsSent();
|
|
|
$I->dontSeeElement('#contact-form');
|