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
Removes non needed underscores
  • Loading branch information
nunomaduro committed Aug 28, 2021
commit 847f9137b342552786e8e40e337a8619ef9786de
2 changes: 1 addition & 1 deletion stubs/pest-tests/livewire/DeleteAccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Laravel\Jetstream\Http\Livewire\DeleteUserForm;
use Livewire\Livewire;

test('user_accounts_can_be_deleted', function () {
test('user accounts can be deleted', function () {
if (! Features::hasAccountDeletionFeatures()) {
return $this->markTestSkipped('Account deletion is not enabled.');
}
Expand Down
4 changes: 2 additions & 2 deletions stubs/pest-tests/livewire/LeaveTeamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Laravel\Jetstream\Http\Livewire\TeamMemberManager;
use Livewire\Livewire;

test('users_can_leave_teams', function () {
test('users can leave teams', function () {
$user = User::factory()->withPersonalTeam()->create();

$user->currentTeam->users()->attach(
Expand All @@ -19,7 +19,7 @@
$this->assertCount(0, $user->currentTeam->fresh()->users);
});

test('team_owners_cant_leave_their_own_team', function () {
test('team owners cant leave their own team', function () {
$this->actingAs($user = User::factory()->withPersonalTeam()->create());

$component = Livewire::test(TeamMemberManager::class, ['team' => $user->currentTeam])
Expand Down