Skip to content

Commit

Permalink
adding test to make sure adding checkins does work
Browse files Browse the repository at this point in the history
  • Loading branch information
hownowstephen committed May 3, 2014
1 parent fd8b54b commit 96bf844
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/FoursquareAPITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,15 @@ public function testPrivateEndpoint(){
// Ensure we get a success response
$this->assertLessThan(400, $venues->meta->code, $venues->meta->errorDetail);
}

public function testCheckin(){

$foursquare = new FoursquareAPI(CLIENT_ID, CLIENT_SECRET);
$foursquare->SetAccessToken(TOKEN);

// Checks the acting user in at Aux Vivres in Montreal, Canada
$response = json_decode($foursquare->GetPrivate("checkins/add", array("venueId"=>"4ad4c06bf964a5207ff920e3"), $POST=true));

$this->assertLessThan(400, $response->meta->code, $response->meta->errorDetail);
}
}

0 comments on commit 96bf844

Please sign in to comment.