16 ->getMockBuilder(\ilObjUser::class)
17 ->disableOriginalConstructor()
18 ->setMethods([
'getLanguage',
'getId',
'getLogin'])
22 ->expects($this->any())
27 ->expects($this->any())
29 ->willReturn(
'phpunit');
40 ->getMockBuilder(\ilLogger::class)
41 ->disableOriginalConstructor()
53 ->getMockBuilder(\ilTermsOfServiceDocumentCriteriaEvaluation::class)
54 ->disableOriginalConstructor()
65 $criterionTypeFactory = $this
66 ->getMockBuilder(\ilTermsOfServiceCriterionTypeFactoryInterface::class)
69 return $criterionTypeFactory;
78 $criterionType = $this
79 ->getMockBuilder(\ilTermsOfServiceCriterionType::class)
83 ->expects($this->any())
84 ->method(
'getTypeIdent')
85 ->willReturn($typeIdent);
87 return $criterionType;
96 $criterionAssignment = $this
97 ->getMockBuilder(\ilTermsOfServiceEvaluableCriterion::class)
101 ->expects($this->any())
102 ->method(
'getCriterionId')
105 return $criterionAssignment;
Interface ilTermsOfServiceCriterionType.
getCriterionTypeMock(string $typeIdent)
Interface ilTermsOfServiceEvaluableCriterion.
getTypeIdent()
Returns a unique id of the criterion type.
Interface ilTermsOfServiceDocumentCriteriaEvaluation.
Class ilTermsOfServiceBaseTest.
getCriterionTypeFactoryMock()
getCriterionAssignmentMock(\ilTermsOfServiceCriterionType $criterionType)
Class ilTermsOfServiceEvaluationBaseTest.
Component logger with individual log levels by component id.
Interface ilTermsOfServiceCriterionTypeFactoryInterface.