Skip to content

Commit c52efc2

Browse files
CopilotADmad
andcommitted
Add test for getIdentity() returning null without identity
Co-authored-by: ADmad <142658+ADmad@users.noreply.github.com>
1 parent cbc12d3 commit c52efc2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/TestCase/View/Helper/IdentityHelperTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public function testWithOutIdentity()
9090
$this->assertNull($helper->getId());
9191

9292
$this->assertFalse($helper->is(1));
93+
94+
$this->assertNull($helper->getIdentity());
9395
}
9496

9597
public function testGetIdentity()

0 commit comments

Comments
 (0)