Exemplo n.º 1
0
 public function testAddressServiceDataDoesNotLatLong()
 {
     $ticket = new Ticket();
     $ticket->setLocation('Somewhere');
     $ticket->setLatitude(37);
     $ticket->setLongitude(-80);
     $ticket->setAddressServiceData($this->data);
     $this->assertEquals($this->data['location'], $ticket->getLocation(), 'Address string was not updated from AddressService');
     $this->assertEquals(37, $ticket->getLatitude(), 'Latitude was changed from AddressService');
     $this->assertEquals(-80, $ticket->getLongitude(), 'Longitude was changed from AddressService');
 }