Expose RSS feed
Though actually its the json feed 🤫
This commit is contained in:
parent
d264b8bdc3
commit
ba9330cdf1
9 changed files with 41 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue