Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

codelabmw/larakits

23 stars
1 code files
View codelabmw/larakits on GitHub

tests/Feature/Http/HomeTest.php

Open in GitHub
use Inertia\Testing\AssertableInertia;
 
it('returns a successful response', function (): void {
// Act
$response = $this->get('/');
 
// Assert
$response->assertStatus(200);
$response->assertInertia(function (AssertableInertia $page): void {
$page->component('landing/welcome')
->has('trendingKits')
->has('recentKits');
});
});

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.