Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Adds support for Pest #866

Merged
merged 17 commits into from
Sep 8, 2021
Merged
Prev Previous commit
Next Next commit
Refactor
  • Loading branch information
lukeraymonddowning committed Aug 29, 2021
commit f8594b4f051ffae13afeec0521e2599a32ac0d00
5 changes: 3 additions & 2 deletions stubs/pest-tests/inertia/ProfileInformationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'email' => '[email protected]',
]);

expect($user->fresh()->name)->toEqual('Test Name');
expect($user->fresh()->email)->toEqual('[email protected]');
expect($user->fresh())
->name->toEqual('Test Name')
->email->toEqual('[email protected]');
});
5 changes: 3 additions & 2 deletions stubs/pest-tests/livewire/ProfileInformationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
->set('state', ['name' => 'Test Name', 'email' => '[email protected]'])
->call('updateProfileInformation');

expect($user->fresh()->name)->toEqual('Test Name');
expect($user->fresh()->email)->toEqual('[email protected]');
expect($user->fresh())
->name->toEqual('Test Name')
->email->toEqual('[email protected]');
});