19 declare(strict_types=1);
27 $this->assertInstanceOf(ilOrgUnitPosition::class, $pos);
28 $this->assertEquals(0, $pos->getId());
29 $this->assertEquals(
'', $pos->getTitle());
30 $this->assertEquals(
'', $pos->getDescription());
31 $this->assertEquals(
false, $pos->isCorePosition());
32 $this->assertEquals(0, $pos->getCoreIdentifier());
33 $this->assertEquals(
'', (
string) $pos);
34 $this->assertEquals([], $pos->getAuthorities());
40 $this->assertEquals(666, $pos->getId());
41 $this->assertEquals(
'Hello world', $pos->withTitle(
'Hello world')->getTitle());
42 $this->assertEquals(
'Hello world', (
string) $pos->withTitle(
'Hello world'));
43 $this->assertEquals(
'Hello world is a greeting', $pos->withDescription(
'Hello world is a greeting')->getDescription());
45 $this->assertEquals(
true, $pos->withCorePosition(
true)->isCorePosition());
const CORE_POSITION_EMPLOYEE
testOrgUnitPositionModification()
testOrgUnitPositionConstruction()