/** * @param AcceptanceTester $I */ public function testReply(AcceptanceTester $I) { $I->wantTo('ensure that reply post-comment works'); $replyPage = ReplyPage::openBy($I); $I->amGoingTo('reply post-comment with no content'); $replyPage->submit(); $I->expectTo('see validation error'); $I->see('Content cannot be blank.', '.help-block'); $I->amGoingTo('reply post-comment with no empty content'); $replyPage->submit('Test reply post-comment'); $I->expect('the reply saved'); $I->see('Update Post Comment: 2', 'h1'); PostComment::deleteAll(['comment_content' => 'Test reply post-comment']); }
/** * @param FunctionalTester $I */ public function testReply(FunctionalTester $I) { $I->wantTo('ensure that reply post-comment works'); $replyPage = ReplyPage::openBy($I); $I->amGoingTo('reply post-comment with no content'); $replyPage->submit(); $I->expectTo('see validation error'); $I->see('Content cannot be blank.', '.help-block'); // Reply only work for acceptance $_POST['REMOTE_ADDR'] }