21 require_once(__DIR__ .
"/../AbstractTestBase.php");
38 protected function setUp(): void
47 $this->expectException(\InvalidArgumentException::class);
48 $this->expectExceptionMessage(
'stakeholder ids MUST be shorter or equal to than 64 characters');
49 $stakeholder = $this->getResourceStakeholder(
52 $this->stakeholder_repository->register($this->identification, $stakeholder);
57 $this->expectException(\InvalidArgumentException::class);
58 $this->expectExceptionMessage(
'stakeholder classnames MUST be shorter or equal to than 250 characters');
59 $stakeholder = $this->getResourceStakeholder(
63 $this->stakeholder_repository->register($this->identification, $stakeholder);
66 protected function getResourceStakeholder(
67 ?
string $stakeholder_id =
null,
68 ?
string $stakeholder_classname =
null 74 protected string $stakeholder_id =
'the_ludicrous_long_identification_string_of_a_resource_stakeholder';
78 protected string $stakeholder_classname =
'This\Is\A\Very\Long\Class\Name\Which\Can\Not\Be\Handled\As\A\Propper\Stakeholder\In\The\ILIAS\Resource\Storage\Service';
80 public function __construct(?
string $stakeholder_id =
null, ?
string $stakeholder_classname =
null)
82 $this->stakeholder_id = $stakeholder_id ?? $this->stakeholder_id;
83 $this->stakeholder_classname = $stakeholder_classname ?? $this->stakeholder_classname;
86 public function getId():
string 88 return $this->stakeholder_id;
91 public function getConsumerNameForPresentation():
string 96 public function getFullyQualifiedClassName():
string 98 return $this->stakeholder_classname;
116 public function getOwnerOfNewResources():
int
Interface StakeholderDBRepository.
StakeholderDBRepository $stakeholder_repository
Class StakeholderRepositoryTests.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct()
Constructor setup ILIAS global object public.
Class ResourceIdentification.
ResourceIdentification $identification
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ResourceBuilderTest.
Interface ResourceStakeholder.