Ejemplo n.º 1
0
 public function testUnfollowProject(\FunctionalTester $I)
 {
     $I->wantTo('check that Unfollow button works');
     self::testFollowProject($I);
     $I->sendAjaxPostRequest(IndexPage::getUnfollowLink(\Project::$id));
     IndexPage::openBy($I);
     $I->dontSeeRecord('app\\models\\ProjectFollowers', ['projectID' => \Project::$id, 'usersFollowing' => \Yii::$app->getUser()->getId()]);
     $I->seeLink(IndexPage::$followButtonText, IndexPage::getFollowLink(\Project::$id));
     $I->dontSeeLink(IndexPage::$unfollowButtonText, IndexPage::getUnfollowLink(\Project::$id));
 }