Symbiote\Addressable\Tests\GeocodableTest
Synopsis
class GeocodableTest
extends SapphireTest
{
- // members
- protected static boolean $use_draft_site = true;
- protected boolean $usesDatabase = true;
- // methods
- public void testUpdatingLatLngFromAddress()
- public void testGetLastError()
- public void testDisableLatLngUpdate()
- public void testLatLngOverride()
- public void testIntendedTruncation()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $use_draft_site
- $usesDatabase
Methods
public
- testDisableLatLngUpdate() — Make sure that Lat / Lng is not written to if "is_geocodable" is false.
- testGetLastError() — Get the last geocodable error
- testIntendedTruncation() — When using Google Maps to retrieve a Lat/Lng, it only gives you back up to 7 decimal places, so we limited the Geocodable fields to `Decimal(10,7)`
- testLatLngOverride() — Test case for when a CMS user wants to override a Lat/Lng value and not automatically retrieve from based on the address information.
- testUpdatingLatLngFromAddress() — Test retrival of Lat/Lng from Google Maps endpoint (or similar)