Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Jul 14, 2023
1 parent c04c65d commit ac31743
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Domains/Contact/Dav/Services/ImportVCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public function __construct(
*/
public function execute(array $data): array
{
dump($data);

$this->validateRules($data);

if (Arr::get($data, 'contact_id') !== null) {
Expand Down
10 changes: 10 additions & 0 deletions tests/Unit/Domains/Contact/DAV/Jobs/UpdateVCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ public function it_creates_a_contact()
return true;
});

$this->assertDatabaseHas('accounts', [
'id' => $account->id,
]);
$this->assertDatabaseHas('users', [
'id' => $user->id,
]);
$this->assertDatabaseHas('vaults', [
'id' => $vault->id,
]);

$batch = app(DatabaseBatchRepository::class)->store($pendingBatch);
$job->withBatchId($batch->id)->handle();

Expand Down

0 comments on commit ac31743

Please sign in to comment.