19 declare(strict_types=1);
28 $this->assertInstanceOf(ilOrgUnitAuthority::class, $auth);
29 $this->assertEquals(0, $auth->getId());
32 $this->assertEquals(0, $auth->getPositionId());
33 $this->assertEquals(
'0', (
string) $auth);
39 $this->assertEquals(666, $auth->getId());
40 $this->assertEquals(
'666', (
string) $auth);
41 $this->assertEquals(555, $auth->withOver(555)->getOver());
46 $this->assertEquals(333, $auth->withPositionId(333)->getPositionId());
51 $this->expectException(\ilException::class);
testOrgUnitAuthorityModification()
testOrgUnitAuthorityConstruction()
testOrgUnitAuthorityInvalidScope()
const SCOPE_SUBSEQUENT_ORGUS