feat: add employee-only supervisor role nominated by crm selection 1487

This commit is contained in:
fromme committed 2026-10-05 17:06:37 +02:00
1 parent 5f95492a7f
commit 93512b8345
6 files changed
+49 -1

No files matched your search

@@ -67,6 +67,24 @@ class CrmAttributesResponseParserTest extends TestCase
self::assertNotContains('ROLE_TEAM_ADMIN', $roles);
}
/**
* ROLE_SUPERVISOR is not consumed here either — it is exported through /api/userinfo for
* ephub.
*/
public function testParseAssignsSupervisorRoleWhenSelected(): void
{
$roles = $this->parseRoles($this->selectionXml(1487, true));
self::assertContains('ROLE_SUPERVISOR', $roles);
}
public function testParseAssignsNoSupervisorRoleWhenNotSelected(): void
{
$roles = $this->parseRoles($this->selectionXml(1487, false));
self::assertNotContains('ROLE_SUPERVISOR', $roles);
}
public function testParseAssignsNoCustomerExpertRoleWhenNotSelected(): void
{
$roles = $this->parseRoles($this->selectionXml(1483, false));