Skip to content

Commit b2eddd0

Browse files
committed
test: update testDisplayLoggedIn() for check Permissions
1 parent ec93d3e commit b2eddd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Collectors/AuthTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ public function testDisplayLoggedIn(): void
4343
assert($authenticator instanceof Session);
4444
$authenticator->login($this->user);
4545
$this->user->addGroup('admin', 'beta');
46+
$this->user->addPermission('users.create', 'users.edit');
4647

4748
$output = $this->collector->display();
4849

4950
$this->assertStringContainsString('Current Use', $output);
5051
$this->assertStringContainsString('<td>Username</td><td>John Smith</td>', $output);
5152
$this->assertStringContainsString('<td>Groups</td><td>admin, beta</td>', $output);
53+
$this->assertStringContainsString('<td>Permissions</td><td>users.create, users.edit</td>', $output);
5254
}
5355

5456
public function testDisplayNotLoggedInAfterLogout(): void

0 commit comments

Comments
 (0)