Пример #1
0
 public function testDeleteFollowErrorNoFollow()
 {
     $follow = Follow::destroy(1);
     $follow_id = User::where('email', '*****@*****.**')->first()->user_id;
     $response = $this->action('delete', 'FollowController@destroy', array('follow_id' => $follow_id));
     $this->assertEquals(array("code" => ApiResponse::NOT_EXISTED_FOLLOW, "data" => ApiResponse::getErrorContent(ApiResponse::NOT_EXISTED_FOLLOW)), json_decode($response->getContent(), true));
 }