style+fix(pd): pint formatting + nullsafe.neverNull fix + lifecycle test predicate

This commit is contained in:
Дмитрий
2026-05-22 16:45:12 +03:00
parent 8e732fa855
commit bc09186299
12 changed files with 77 additions and 56 deletions
@@ -1,8 +1,11 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
use App\Models\Tenant;
use App\Models\User;
use App\Services\Pd\PdAuditLogger;
use Illuminate\Database\QueryException;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Facades\DB;
use Tests\TestCase;
@@ -48,5 +51,5 @@ it('rejects two-actor row (chk_pd_actor violation)', function () {
action: 'viewed', subjectType: 'lead', subjectId: 1,
purpose: 'x', tenantId: $tenant->id,
actorTenantUserId: $user->id, actorAdminUserId: 999999, ip: null,
))->toThrow(\Illuminate\Database\QueryException::class);
))->toThrow(QueryException::class);
});