Beispiel #1
0
 public function testCreateFollowErrorDuplicatedFollow()
 {
     $_params = $this->_params;
     $follow_id = User::where('email', '*****@*****.**')->first()->user_id;
     $_params = $this->_params;
     $_params['user_id'] = $this->_user_id;
     $_params['follow_id'] = $follow_id;
     $response = $this->_getAuth($_params);
     //get created login information
     $follow_infor = Follow::get(array('from_id', 'to_id', 'updated_at', 'created_at', 'id'))->last();
     $this->assertNotNull($follow_infor);
     $this->assertEquals(array("code" => ApiResponse::DUPLICATED_FOLLOW, "data" => ApiResponse::getErrorContent(ApiResponse::DUPLICATED_FOLLOW)), json_decode($response->getContent(), true));
 }