Skip to content

Commit

Permalink
Adding geo test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmathai committed Feb 24, 2011
1 parent 99ac6c6 commit d79e93c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/EpiFoursquareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ function testCheckin()
$this->assertEquals($resp->meta->code, 200, "Meta code is not 200");
}

function testGeo()
{
$geolat = '41.438797';
$geolon = '-97.351511';

$resp = $this->fsObj->post('/checkin.json', array('venue' => 'test', 'geolat' => $geolat, 'geolon' => $geolon));
$this->assertTrue($resp->checkin->id > 0, "Checkin id is not > 0");
$this->assertEquals($geolat, $resp->checkin->geolat, "Latitude not stored");
$this->assertEquals($geolon, $resp->checkin->geolon, "Longitude not stored");
}

///**
//* @expectedException EpiTwitterNotAuthorizedException
//*/
Expand Down

0 comments on commit d79e93c

Please sign in to comment.