Skip to content

Commit

Permalink
fix unit test placeholdervalues test
Browse files Browse the repository at this point in the history
  • Loading branch information
fhelfer authored and kergomard committed Sep 19, 2024
1 parent 804fff2 commit 396fea7
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,17 @@ public function testA(): void
$test_object->method('getMarkSchema')
->willReturn($mark_schema);

$user_object = $this->getMockBuilder(\ilObjUser::class)
->disableOriginalConstructor()
->getMock();

$object_helper->method('getInstanceByObjId')
->willReturn($test_object);
->willReturnMap(
[
[200, $test_object],
[10, $user_object]
]
);

$test_object_helper = $this->getMockBuilder(CertificateTestObjectHelper::class)
->getMock();
Expand Down

0 comments on commit 396fea7

Please sign in to comment.