Skip to content

Commit

Permalink
#1096: fixed cs
Browse files Browse the repository at this point in the history
  • Loading branch information
arusinowski committed Sep 4, 2024
1 parent 313ef12 commit 325c48c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tests/TestCase/Controller/Traits/Webauthn2FaTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@ public function testWebauthn2faIsRegister()
$this->Trait
->expects($this->exactly(2))
->method('set')
->willReturnCallback(fn ($name, $value) =>
match ([$name, $value]) {
['isRegister', true] => null,
['username', 'user-2'] => null
});
->willReturnCallback(fn ($name, $value) => match ([$name, $value]) {
['isRegister', true] => null,
['username', 'user-2'] => null
});
$this->Trait->webauthn2fa();
$this->assertSame(
$user,
Expand Down Expand Up @@ -146,11 +145,10 @@ public function testWebauthn2faDontRequireRegister()
$this->Trait
->expects($this->exactly(2))
->method('set')
->willReturnCallback(fn ($name, $value) =>
match ([$name, $value]) {
['isRegister', false] => null,
['username', 'user-1'] => null
});
->willReturnCallback(fn ($name, $value) => match ([$name, $value]) {
['isRegister', false] => null,
['username', 'user-1'] => null
});
$this->Trait->webauthn2fa();
$this->assertSame(
$user,
Expand Down

0 comments on commit 325c48c

Please sign in to comment.