Skip to content

Commit 79c784a

Browse files
authored
Merge pull request #768 from cakephp/copilot/sub-pr-767
Add test coverage for getIdentity() with no identity present
2 parents 50e6f78 + c52efc2 commit 79c784a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)