Skip to content

Conversation

@joelclermont
Copy link
Member

No description provided.

@joelclermont joelclermont requested a review from aaronsaray April 21, 2025 19:37
Copy link
Member

@aaronsaray aaronsaray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is missing validation tests

'email' => '[email protected]',
]);

$payload = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this terminology.

static::assertSame('[email protected]', $user->email);

$component->assertSessionHas('success', 'Profile updated successfully.');
$component->assertRedirect(route('profile'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't have assertRedirectToRoute available?

->set($payload)
->call('submit');

$component->assertHasErrors([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to validate length and the other things, though.

@github-actions
Copy link

Package Line Rate Complexity Health
Console/Kernel.php 67% 2
Events/ListingLinkClicked.php 100% 1
Exceptions/Handler.php 100% 1
Http/Controllers/Api/ListingsController.php 100% 1
Http/Controllers/Auth/AuthenticatedSessionController.php 50% 3
Http/Controllers/Auth/ConfirmablePasswordController.php 100% 3
Http/Controllers/Auth/NewPasswordController.php 100% 3
Http/Controllers/Auth/PasswordResetLinkController.php 100% 3
Http/Controllers/Controller.php 0% 0
Http/Controllers/DashboardController.php 100% 1
Http/Controllers/ListingController.php 100% 17
Http/Controllers/ProfileController.php 100% 1
Http/Kernel.php 0% 0
Http/Livewire/ProfileEditor.php 100% 4
Http/Middleware/Authenticate.php 100% 2
Http/Middleware/EncryptCookies.php 0% 0
Http/Middleware/PreventRequestsDuringMaintenance.php 0% 0
Http/Middleware/RedirectIfAuthenticated.php 80% 4
Http/Middleware/TrimStrings.php 0% 0
Http/Middleware/TrustHosts.php 0% 1
Http/Middleware/TrustProxies.php 0% 0
Http/Middleware/VerifyCsrfToken.php 0% 0
Http/Requests/Auth/LoginRequest.php 65% 7
Http/Requests/ListingStoreRequest.php 100% 2
Jobs/NotifyPartnerOfHighlightedJob.php 100% 2
Listeners/TrackListingLinkClick.php 100% 1
Models/Click.php 0% 1
Models/Listing.php 100% 5
Models/Tag.php 100% 3
Models/User.php 100% 1
Policies/ListingPolicy.php 100% 3
Providers/AppServiceProvider.php 100% 2
Providers/AuthServiceProvider.php 100% 1
Providers/BroadcastServiceProvider.php 0% 1
Providers/EventServiceProvider.php 100% 1
Providers/RouteServiceProvider.php 46% 3
Services/PartnerService.php 0% 1
Services/StripeService.php 0% 2
View/Components/AppLayout.php 100% 1
View/Components/GuestLayout.php 100% 1
Summary 89% (239 / 269) 85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants