Skip to content

Instantly share code, notes, and snippets.

@ZhandosKz
Created April 29, 2015 14:46
Show Gist options
  • Save ZhandosKz/0d885ecbbe85bad1d72c to your computer and use it in GitHub Desktop.
Save ZhandosKz/0d885ecbbe85bad1d72c to your computer and use it in GitHub Desktop.
$location->country_long = 'Canada';
$location->country_short = 'CA';
$location->city_long = "Saint John's";
$this->assertTrue($location->save());
$this->assertEquals(Location::ALIAS_PREFIX . 'Saint-John-s-Canada', $location->alias);
$this->assertEquals('Saint-John-s-Canada', $location->getUrl());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment