25 require_once
"Base.php";
38 [
'https://ilias.de/ilias',
'https://ilias.de/ilias'],
39 [
'https://ilias.de/ilias/',
'https://ilias.de/ilias'],
40 [
'http://ilias.de/ilias',
'http://ilias.de/ilias'],
41 [
'https://test9.ilias.de/goto.php',
'https://test9.ilias.de'],
42 [
'https://test9.ilias.de/goto.php/',
'https://test9.ilias.de'],
43 [
'https://test9.ilias.de/goto.php/wiki',
'https://test9.ilias.de'],
44 [
'https://test9.ilias.de/goto.php/wiki/22',
'https://test9.ilias.de'],
45 [
'http://test9.ilias.de/goto.php',
'http://test9.ilias.de'],
46 [
'http://test9.ilias.de/go/hello',
'http://test9.ilias.de'],
47 [
'http://test9.ilias.de/go/hello',
'http://test9.ilias.de'],
48 [
'http://test9.ilias.de/Customizing/global/plugins/Services/index.php',
'http://test9.ilias.de'],
52 #[DataProvider('getILIAS_HTTP_Paths')] 53 public function testBaseURI(
string $ILIAS_HTTP_PATH,
string $expected): void
56 $this->assertEquals($expected, (
string) $uri_builder->
getBaseURI());
62 [
'wiki', 42, [],
'https://test9.ilias.de/goto.php/wiki/42'],
63 [
'file', 42, [
'download'],
'https://test9.ilias.de/goto.php/file/42/download'],
64 [
'dashboard',
null, [],
'https://test9.ilias.de/goto.php/dashboard'],
69 #[DataProvider('getBuilderParts')] 73 $uri = $uri_builder->
build(
78 $this->assertEquals($expected, (
string) $uri);
if($err=$client->getError()) $namespace
string $ilias_http_path_backup
static getILIAS_HTTP_Paths()
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testFullBuilder(string $namespace, ?int $ref_id, array $params, string $expected)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
StandardURIBuilder $uri_builder
build(string $namespace, ?ReferenceId $reference_id=null, array $additional_parameters=[])
testBaseURI(string $ILIAS_HTTP_PATH, string $expected)