refreshApplicationWithLocale('en'); $this->user = User::inRandomOrder()->first(); $this->blogPost = BlogPost::inRandomOrder()->first(); } public function test_show_page_success(): void { $response = $this->actingAs($this->user) ->get(route('blog_post.show', $this->blogPost)); $response ->assertOk(); } }