style+fix(pd): pint formatting + nullsafe.neverNull fix + lifecycle test predicate
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user