21 require_once(__DIR__ .
"/../AbstractTestBase.php");
35 protected \ILIAS\ResourceStorage\Identification\ResourceIdentification
$identification;
37 protected function setUp(): void
46 $this->expectException(\InvalidArgumentException::class);
47 $this->expectExceptionMessage(
'stakeholder ids MUST be shorter or equal to than 64 characters');
48 $stakeholder = $this->getResourceStakeholder(
51 $this->stakeholder_repository->register($this->identification, $stakeholder);
56 $this->expectException(\InvalidArgumentException::class);
57 $this->expectExceptionMessage(
'stakeholder classnames MUST be shorter or equal to than 250 characters');
58 $stakeholder = $this->getResourceStakeholder(
62 $this->stakeholder_repository->register($this->identification, $stakeholder);
65 protected function getResourceStakeholder(
66 ?
string $stakeholder_id = null,
67 ?
string $stakeholder_classname = null
73 protected string $stakeholder_id =
'the_ludicrous_long_identification_string_of_a_resource_stakeholder';
77 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';
79 public function __construct(?
string $stakeholder_id = null, ?
string $stakeholder_classname = null)
81 $this->stakeholder_id = $stakeholder_id ?? $this->stakeholder_id;
82 $this->stakeholder_classname = $stakeholder_classname ?? $this->stakeholder_classname;
85 public function getId():
string 87 return $this->stakeholder_id;
90 public function getConsumerNameForPresentation():
string 95 public function getFullyQualifiedClassName():
string 97 return $this->stakeholder_classname;
115 public function getOwnerOfNewResources():
int
ILIAS ResourceStorage Stakeholder Repository StakeholderDBRepository $stakeholder_repository
Interface StakeholderDBRepository.
Class StakeholderRepositoryTests.
__construct()
Constructor setup ILIAS global object public.
Class ResourceIdentification.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS ResourceStorage Identification ResourceIdentification $identification
Class ResourceBuilderTest.
Interface ResourceStakeholder.