Skip to content

Commit db025b9

Browse files
iamfarhadgithub-actions[bot]
authored andcommitted
PHP Linting (Pint)
1 parent 9cebc5f commit db025b9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/Feature/UserModelAuditExclusionInclusionTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ public function test_user_model_audit_exclusions_verification(): void
5555
$this->assertArrayNotHasKey(
5656
'password',
5757
$newValues,
58-
'Password field should be excluded from audit logs but it appears in: ' . json_encode(array_keys($newValues))
58+
'Password field should be excluded from audit logs but it appears in: '.json_encode(array_keys($newValues))
5959
);
6060

6161
$this->assertArrayNotHasKey(
6262
'remember_token',
6363
$newValues,
64-
'Remember token should be excluded from audit logs but it appears in: ' . json_encode(array_keys($newValues))
64+
'Remember token should be excluded from audit logs but it appears in: '.json_encode(array_keys($newValues))
6565
);
6666
}
6767

@@ -124,7 +124,7 @@ public function test_user_model_audit_exclusions_on_update(): void
124124
public function test_user_model_respects_global_and_model_exclusions(): void
125125
{
126126
// Create user with all possible fields that might be excluded
127-
$user = new User();
127+
$user = new User;
128128
$user->name = 'Test User';
129129
$user->email = '[email protected]';
130130
$user->password = 'secret-password';
@@ -159,7 +159,7 @@ public function test_user_model_respects_global_and_model_exclusions(): void
159159
public function test_user_model_audit_exclusions_with_disabled_auditing(): void
160160
{
161161
// Create user with auditing disabled
162-
$user = new User();
162+
$user = new User;
163163
$user->disableAuditing();
164164
$user->name = 'Test User';
165165
$user->email = '[email protected]';
@@ -222,26 +222,26 @@ public function test_post_model_audit_inclusions_verification(): void
222222
$this->assertArrayNotHasKey(
223223
'content',
224224
$newValues,
225-
'Content field should not be audited because it is not in auditInclude array. Found fields: ' . json_encode(array_keys($newValues))
225+
'Content field should not be audited because it is not in auditInclude array. Found fields: '.json_encode(array_keys($newValues))
226226
);
227227

228228
$this->assertArrayNotHasKey(
229229
'user_id',
230230
$newValues,
231-
'User ID field should not be audited because it is not in auditInclude array. Found fields: ' . json_encode(array_keys($newValues))
231+
'User ID field should not be audited because it is not in auditInclude array. Found fields: '.json_encode(array_keys($newValues))
232232
);
233233

234234
// Global exclusions should still apply (timestamps should be excluded)
235235
$this->assertArrayNotHasKey(
236236
'created_at',
237237
$newValues,
238-
'Created at timestamp should be excluded by global config. Found fields: ' . json_encode(array_keys($newValues))
238+
'Created at timestamp should be excluded by global config. Found fields: '.json_encode(array_keys($newValues))
239239
);
240240

241241
$this->assertArrayNotHasKey(
242242
'updated_at',
243243
$newValues,
244-
'Updated at timestamp should be excluded by global config. Found fields: ' . json_encode(array_keys($newValues))
244+
'Updated at timestamp should be excluded by global config. Found fields: '.json_encode(array_keys($newValues))
245245
);
246246
}
247247

0 commit comments

Comments
 (0)