From 06c570260289056a26ecc3cd1aa6b7b4d0212bf3 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Wed, 12 Dec 2018 22:27:34 +0800 Subject: [PATCH] Use bootstrap spacing class on map_popup_content --- app/Outlet.php | 4 ++-- tests/Unit/Models/OutletTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Outlet.php b/app/Outlet.php index 35e7541..14f9c85 100644 --- a/app/Outlet.php +++ b/app/Outlet.php @@ -39,8 +39,8 @@ class Outlet extends Model public function getMapPopupContentAttribute() { $mapPopupContent = ''; - $mapPopupContent .= ''; - $mapPopupContent .= ''; + $mapPopupContent .= '
'.__('outlet.name').':
'.$this->name.'
'; + $mapPopupContent .= '
'.__('outlet.coordinate').':
'.$this->coordinate.'
'; return $mapPopupContent; } diff --git a/tests/Unit/Models/OutletTest.php b/tests/Unit/Models/OutletTest.php index 5c54885..2a24d17 100644 --- a/tests/Unit/Models/OutletTest.php +++ b/tests/Unit/Models/OutletTest.php @@ -55,8 +55,8 @@ class OutletTest extends TestCase $outlet = factory(Outlet::class)->make(['lat' => '-3.333333', 'long' => '114.583333']); $mapPopupContent = ''; - $mapPopupContent .= ''; - $mapPopupContent .= ''; + $mapPopupContent .= '
'.__('outlet.name').':
'.$outlet->name.'
'; + $mapPopupContent .= '
'.__('outlet.coordinate').':
'.$outlet->coordinate.'
'; $this->assertEquals($mapPopupContent, $outlet->map_popup_content); }