Expose RSS feed

Though actually its the json feed 🤫
This commit is contained in:
Jonny Barnes 2023-12-19 17:12:49 +00:00
parent d264b8bdc3
commit ba9330cdf1
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
9 changed files with 41 additions and 2 deletions

View file

@ -6,6 +6,7 @@ namespace Tests\Feature;
use App\Models\Article;
use App\Models\Note;
use App\Models\Place;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
@ -159,4 +160,14 @@ class FeedsTest extends TestCase
}
}
}
/** @test */
public function jsonNoteFeedLoadsPlaceDataWithoutLazyLoading(): void
{
$place = Place::factory()->create();
Note::factory()->create(['note' => null, 'place_id' => $place->id]);
$response = $this->get('/notes/feed.json');
$response->assertOk();
}
}