ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
EchoingTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tests\UI\Help\TextRetriever
;
22
23
use
ILIAS\UI\Help\TextRetriever\Echoing
;
24
use
ILIAS\UI\Help\Topic
;
25
use
ILIAS\UI\Help\Purpose
;
26
use PHPUnit\Framework\TestCase;
27
28
class
EchoingTest
extends
TestCase
29
{
30
protected
Echoing
$retriever
;
31
32
public
function
setUp
(): void
33
{
34
$this->retriever =
new
Echoing
();
35
}
36
37
public
function
testGetHelpTextEchoes
(): void
38
{
39
$result = $this->retriever->getHelpText(
40
new
Purpose
(
Purpose::PURPOSE_TOOLTIP
),
41
new
Topic
(
"foo"
),
42
new
Topic
(
"bar"
)
43
);
44
45
$this->assertEquals([
"tooltip: foo"
,
"tooltip: bar"
], $result);
46
}
47
}
ILIAS\Tests\UI\Help\TextRetriever\EchoingTest
Definition:
EchoingTest.php:29
ILIAS\Tests\UI\Help\TextRetriever\EchoingTest\testGetHelpTextEchoes
testGetHelpTextEchoes()
Definition:
EchoingTest.php:37
ILIAS\Tests\UI\Help\TextRetriever\EchoingTest\$retriever
Echoing $retriever
Definition:
EchoingTest.php:30
ILIAS\Tests\UI\Help\TextRetriever\EchoingTest\setUp
setUp()
Definition:
EchoingTest.php:32
ILIAS\UI\Help\Purpose
A purpose describes the intended use for a certain help text.
Definition:
Purpose.php:47
ILIAS\UI\Help\Purpose\PURPOSE_TOOLTIP
const PURPOSE_TOOLTIP
Definition:
Purpose.php:48
ILIAS\UI\Help\TextRetriever\Echoing
This HelpTextRetriever simply echo the purpose and the topics for debugging and development purpose.
Definition:
Echoing.php:31
ILIAS\UI\Help\Topic
This is just a class that marks a string as a help topic.
Definition:
Topic.php:27
ILIAS\Tests\UI\Help\TextRetriever
Definition:
ChainingTest.php:21
components
ILIAS
UI
tests
Help
TextRetriever
EchoingTest.php
Generated on Sat Oct 18 2025 23:04:56 for ILIAS by
1.9.4 (using
Doxyfile
)