Skip to content

Commit

Permalink
Tests (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Bürgin-Fix <[email protected]>
  • Loading branch information
RhysLees and StanBarrows authored Jan 5, 2024
1 parent 91f497a commit f76257d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/Feature/UserResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,16 @@
$user = (new Zammad())->user()->searchOrCreateByEmail($email);
$this->assertSame($email, $user->email);
Event::assertDispatched(ZammadResponseLog::class, 2);
(new Zammad())->user()->delete($user->id);
Event::assertDispatched(ZammadResponseLog::class, 3);
})->group('users');

it('deletes a user', function () {
$email = Str::orderedUuid()->toString().'@codebar.ch';
$user = (new Zammad())->user()->searchOrCreateByEmail($email);
$this->assertSame($email, $user->email);
Event::assertDispatched(ZammadResponseLog::class, 2);

(new Zammad())->user()->delete($user->id);
Event::assertDispatched(ZammadResponseLog::class, 3);
})->group('users')->skip('Failing on CI');
})->group('users')->skip('not possible via api');

it('show current user expanded', function () {
$user = (new Zammad())->user()->me();
Expand Down

0 comments on commit f76257d

Please sign in to comment.