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
CS
  • Loading branch information
lukeraymonddowning committed Aug 29, 2021
commit 9a8c4567147e873abf80fe4ecb18afa67e67bbf9
3 changes: 1 addition & 2 deletions stubs/pest-tests/inertia/DeleteTeamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
expect($otherUser->fresh()->teams)->toHaveCount(0);
});

test('personal teams cant be deleted', function ()
{
test('personal teams cant be deleted', function () {
$this->actingAs($user = User::factory()->withPersonalTeam()->create());

$response = $this->delete('/teams/'.$user->currentTeam->id);
Expand Down
3 changes: 1 addition & 2 deletions stubs/pest-tests/livewire/CreateTeamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Laravel\Jetstream\Http\Livewire\CreateTeamForm;
use Livewire\Livewire;

test('teams can be created', function ()
{
test('teams can be created', function () {
$this->actingAs($user = User::factory()->withPersonalTeam()->create());

Livewire::test(CreateTeamForm::class)
Expand Down
3 changes: 1 addition & 2 deletions stubs/pest-tests/livewire/DeleteApiTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use Laravel\Jetstream\Http\Livewire\ApiTokenManager;
use Livewire\Livewire;

test('api tokens can be deleted', function ()
{
test('api tokens can be deleted', function () {
if (Features::hasTeamFeatures()) {
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
} else {
Expand Down