Skip to content

Commit

Permalink
Fixing geo test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmathai committed Feb 24, 2011
1 parent b7890f6 commit 7e19e0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/EpiFoursquareTest.php
Expand Up @@ -46,10 +46,10 @@ 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");
$resp = $this->fsObj->post('/checkins/add', array('venue' => 'test ' . time(), 'geolat' => $geolat, 'geolon' => $geolon, 'broadcast' => 'private'));
$this->assertEquals($resp->meta->code, 200, "Checkin create response code != 200");
$this->assertTrue(!empty($resp->response->checkin->location->lat), "Latitude not stored");
$this->assertTrue(!empty($resp->response->checkin->location->lon), "Longitude not stored");
}

///**
Expand Down

0 comments on commit 7e19e0d

Please sign in to comment.