From c4eed8e41a2a8c115a249fbd41461c9919c62e60 Mon Sep 17 00:00:00 2001
From: Jonny Barnes Some markdown Some markdown In reply to In reply to In reply to In reply to In reply to a note In reply to a note In reply to a note In reply to a note Hello Hello
id>KIiD2d;k998kxS2n-&Mz+}AMDThw9nS|?{SUtiz9Z&fFic6jW&e$d>M
z=hpNq{3fa;zYE)05*xE!FVA1LcHRd$j{hIpIiGHE*6ZeY_`3GD^t{t9yFFTVSM8bS
za>&Hn=8IuW&rZ&dCN_=|GHM*t=ihs=|I$JKPrGc-nf}{gk(k)}bhglDrT;a?6YuCQ
z*9`qI_1~`Vu?IZwq#xmRiR=Di|NP6LQ`eTC;#502{lMz17iOJevOOGp+OrtSD;#c>
z#x5$3xW3e-<>V9(yR1*|&WkKex!Kdg5-Y3y
-
-HTML;
+
+
-
-HTML;
+
+
-
+
Hello
+Hi Tantek Çelik t
Hi @bob
' . PHP_EOL; $note = Note::find(6); $this->assertEquals($expected, $note->note); } - public function test_shorturl_method() + /** @test */ + public function shorturlMethodReturnsExpectedValue(): void { $note = Note::find(14); $this->assertEquals(config('app.shorturl') . '/notes/E', $note->shorturl); } - public function test_latlng_of_associated_place() + /** @test */ + public function weGetLatitudeLongitudeValuesOfAssociatedPlaceOfNote(): void { $note = Note::find(2); // should be having beer at bridgewater note $this->assertEquals('53.4983', $note->latitude); $this->assertEquals('-2.3805', $note->longitude); } - public function test_latlng_returns_null_otherwise() + /** @test */ + public function whenNoAssociatedPlaceWeGetNullForLatitudeLongitudeValues(): void { $note = Note::find(5); $this->assertNull($note->latitude); $this->assertNull($note->longitude); } - public function test_address_attribute_for_places() + /** @test */ + public function weCanGetAddressAttributeForAssociatedPlace(): void { $note = Note::find(2); $this->assertEquals('The Bridgewater Pub', $note->address); } - public function test_deleting_event_observer() + /** @test */ + public function deletingNotesAlsoDeletesTagsViaTheEventObserver(): void { // first we’ll create a temporary note to delete $note = Note::create(['note' => 'temporary #temp']); @@ -104,7 +118,7 @@ class NotesTest extends TestCase } /** @test */ - public function blank_note_should_be_saved_as_null() + public function saveBlankNotesAsNull(): void { $note = new Note(['note' => '']); @@ -112,11 +126,13 @@ class NotesTest extends TestCase } /** @test */ - public function reverse_geocode_an_attraction() + public function reverseGeocodeAnAttraction(): void { + // phpcs:disable Generic.Files.LineLength.TooLong $json = <<;2ftn(zGR(+0(g
zL}BGy@A@uiP8K;Xmi$txaAkFiyiuZPdH!
id>KIiD2d;k998kxS2n-&Mz+}AMDThw9nS|?{SUtiz9Z&fFic6jW&e$d>M
z=hpNq{3fa;zYE)05*xE!FVA1LcHRd$j{hIpIiGHE*6ZeY_`3GD^t{t9yFFTVSM8bS
za>&Hn=8IuW&rZ&dCN_=|GHM*t=ihs=|I$JKPrGc-nf}{gk(k)}bhglDrT;a?6YuCQ
z*9`qI_1~`Vu?IZwq#xmRiR=Di|NP6LQ`eTC;#502{lMz17iOJevOOGp+OrtSD;#c>
z#x5$3xW3e-<>V9(yR1*|&WkKex!Kdg5-Y3y';
}
- if ($media->type == 'audio') {
+ if ($media->type === 'audio') {
$note .= '