Transition to using a json column for all external urls of a place

This commit is contained in:
Jonny Barnes 2017-06-30 13:21:40 +01:00
parent 31ae5b749b
commit 4afb6a3ae9
4 changed files with 47 additions and 10 deletions

View file

@ -44,7 +44,7 @@ class SwarmTest extends TestCase
->assertStatus(201)
->assertJson(['response' => 'created']);
$this->assertDatabaseHas('places', [
'foursquare' => 'https://foursquare.com/v/123456'
'external_urls' => '{"foursquare": "https://foursquare.com/v/123456"}'
]);
$this->assertDatabaseHas('notes', [
'swarm_url' => 'https://www.swarmapp.com/checkin/abc'