Skip to content

Commit

Permalink
Test both route APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Jul 11, 2024
1 parent 01ffafb commit 3e7e191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Api/RoutingApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public function testOptimizedRoute()
*
* Get turn by turn routing instructions between two or more locations.
*
* @throws ApiException
*/
public function testRoute()
{
Expand All @@ -178,7 +179,7 @@ public function testRoute()
'costing_options' => array(CostingModel::AUTO => array('use_highways' => 0.3)),
'units' => DistanceUnit::MI
));
$result = $this->apiInstance->optimizedRoute($req);
$result = $this->apiInstance->route($req);
self::assertEquals($req->getId(), $result->getId());
self::assertEquals(0, $result->getTrip()->getStatus());
self::assertEquals(ValhallaLongUnits::MILES, $result->getTrip()->getUnits());
Expand Down

0 comments on commit 3e7e191

Please sign in to comment.