/** * @param AcceptanceTester $I */ public function testReply(AcceptanceTester $I) { $I->wantTo('ensure that reply media-comment works'); $replyPage = ReplyPage::openBy($I); $I->amGoingTo('reply media-comment with no content'); $replyPage->submit(''); $I->expectTo('see validation error'); $I->see('Content cannot be blank.', '.help-block'); $I->amGoingTo('reply media-comment with no empty content'); $replyPage->submit('Test reply media-comment'); $I->expect('the reply saved'); $I->see('Update Media Comment 2', 'h1'); MediaComment::deleteAll(['content' => 'Test reply media-comment']); }
/** * @param FunctionalTester $I */ public function testReply(FunctionalTester $I) { $I->wantTo('ensure that reply media-comment works'); $replyPage = ReplyPage::openBy($I); $I->amGoingTo('reply media-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'] }