19 declare(strict_types=1);
32 $container = $this->getMockBuilder(Container::class)->disableOriginalConstructor()->getMock();
39 $container = $this->getMockBuilder(Container::class)->disableOriginalConstructor()->getMock();
40 $access = $this->getMockBuilder(ilAccessHandler::class)->disableOriginalConstructor()->getMock();
42 $container->method(
'access')->willReturn($access);
43 $access->method(
'checkAccess')->with(
'read',
'', 123)->willReturn(
true);
50 $container = $this->getMockBuilder(Container::class)->disableOriginalConstructor()->getMock();
51 $access = $this->getMockBuilder(ilAccessHandler::class)->disableOriginalConstructor()->getMock();
53 $container->method(
'access')->willReturn($access);
54 $access->method(
'checkAccess')->with(
'read',
'', 456)->willReturn(
true);
56 $references_of = fn (
int $object_id) => $this->assertSame(123, $object_id) ?: [456];