Level 1
Well in my case such construction works:
$response->original->getData()['page'];
Summer Sale! All accounts are 50% off this week.
Hello. I make my Exception Handler return specific Inertia component if http error occur. But how can I write pest test for it? This is my code, and it works fine:
$exception = new HttpException($allowedHttpErrorStatus);
$response = app(Handler::class)->render(request(), $exception);
$this->assertEquals($response->getStatusCode(), $allowedHttpErrorStatus);
But I dont know how to check Inertia component rendered. $response has not assertInertia method.
Well in my case such construction works:
$response->original->getData()['page'];
Please or to participate in this conversation.