Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

test: use route() helper for non-uuid loading test

Paulo Castellanoa1d5589f2d36
diff --git a/tests/Feature/Ai/PostAiCreateTest.php b/tests/Feature/Ai/PostAiCreateTest.php
index a5b61ecc1..99003addd 100644
--- a/tests/Feature/Ai/PostAiCreateTest.php
+++ b/tests/Feature/Ai/PostAiCreateTest.php
@@ -165,6 +165,6 @@ test('loading page renders the Inertia component with channel and query context'
test('loading page rejects non-uuid creation ids', function () {
$this->actingAs($this->user)
- ->get('/posts/ai/not-a-uuid/loading')
+ ->get(route('app.posts.ai.loading', 'not-a-uuid'))
->assertStatus(Response::HTTP_NOT_FOUND);
});