Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosp committed Aug 29, 2024
1 parent 82ada04 commit 5c3833a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Behavior/AuditLogBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static function dataProviderForSaveType(): array

public function testSensitiveFields(): void
{
$behavior = new AuditLogBehavior($this->table, [
$behavior = new AuditLogBehavior($this->table, [
'whitelist' => ['id', 'title', 'body', 'author_id'],
'sensitive' => ['body'],
]);
Expand All @@ -221,7 +221,7 @@ public function testSensitiveFields(): void
$event = $queue[$entity];

$this->assertInstanceOf(AuditUpdateEvent::class, $event);

$changed = $event->getChanged();
$this->assertArrayHasKey('body', $changed);
$this->assertEquals('****', $changed['body']);
Expand Down

0 comments on commit 5c3833a

Please sign in to comment.