Skip to main content

codelabmw/larakits

24 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.