19 declare(strict_types=1);
39 $this->assertEquals(self::VALID_POINTS_1, $obj->getPoints());
40 $this->assertEquals(self::VALID_STATUS_1, $obj->getStatus());
49 $this->assertTrue(
true);
59 $this->assertTrue(
true);
69 $this->assertTrue(
true);
77 $new = $obj->withPoints(self::VALID_POINTS_2);
79 $this->assertEquals(self::VALID_POINTS_1, $obj->getPoints());
80 $this->assertEquals(self::VALID_POINTS_2, $new->getPoints());
88 $obj->withPoints(self::INVALID_POINTS);
91 $this->assertTrue(
true);
99 $new = $obj->withStatus(self::VALID_STATUS_2);
101 $this->assertEquals(self::VALID_STATUS_1, $obj->getStatus());
102 $this->assertEquals(self::VALID_STATUS_2, $new->getStatus());
110 $obj->withStatus(self::INVALID_STATUS);
113 $this->assertTrue(
true);
119 $lng = $this->createMock(ilLanguage::class);
134 $lng_consecutive_calls = [];
135 $lng->expects($this->atLeastOnce())
137 ->willReturnCallback(
138 function (
$txt) use (&$lng_consecutive_calls) {
139 $lng_consecutive_calls[] =
$txt;
144 $expected_consecutive_calls = [
150 'prg_status_outdated',
155 $field = $obj->toFormInput(
161 $this->assertEquals($expected_consecutive_calls, $lng_consecutive_calls);
163 $this->assertInstanceOf(
170 $this->assertInstanceOf(
175 $this->assertInstanceOf(
Interface Observer Contains several chained tasks and infos about them.
testFailCreateWithInvalidStatus()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testFailCreateWithInvalidPointAndInvalidStatus()
testSuccessfulWithPoints()
testFailCreateWithInvalidPoints()
testSuccessfulWithStatus()