Beispiel #1
0
 private function testDeleteButton(\FunctionalTester $I)
 {
     IndexPage::openBy($I);
     $I->see(\Activity::$activityName, IndexPage::$activityNameSelector);
     $I->seeRecord('app\\models\\ProjectActivity', ['activityID' => \Activity::$id]);
     // Can't click the link because it needs to be submitted as a POST request. The
     // test clicker doesn't support handling links like that, but clicking works in
     // the browser.
     $I->sendAjaxPostRequest(IndexPage::getDeleteLink(\Activity::$id));
     IndexPage::openBy($I);
     $I->dontSee(\Activity::$activityName, IndexPage::$activityNameSelector);
     $I->dontSeeRecord('app\\models\\ProjectActivity', ['activityID' => \Activity::$id]);
 }