◆ testOrgUnitPositionConstruction()
ilModulesOrgUnitPositionTest::testOrgUnitPositionConstruction |
( |
| ) |
|
Definition at line 24 of file ilModulesOrgUnitPositionTest.php.
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());
◆ testOrgUnitPositionModification()
ilModulesOrgUnitPositionTest::testOrgUnitPositionModification |
( |
| ) |
|
Definition at line 37 of file ilModulesOrgUnitPositionTest.php.
References ilOrgUnitPosition\CORE_POSITION_EMPLOYEE.
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
The documentation for this class was generated from the following file: