ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ 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\UI\Help\Topic
This is just a class that marks a string as a help topic.
Definition:
Topic.php:26
ILIAS\Tests\UI\Help\TextRetriever
Definition:
ChainingTest.php:21
ILIAS\UI\Help\Purpose\PURPOSE_TOOLTIP
const PURPOSE_TOOLTIP
Definition:
Purpose.php:48
Topic
ILIAS\UI\Help\TextRetriever\Echoing
This HelpTextRetriever simply echo the purpose and the topics for debugging and development purpose...
Definition:
Echoing.php:30
ILIAS\Tests\UI\Help\TextRetriever\EchoingTest\testGetHelpTextEchoes
testGetHelpTextEchoes()
Definition:
EchoingTest.php:37
ILIAS\UI\Help\Purpose
A purpose describes the intended use for a certain help text.
Definition:
Purpose.php:46
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\Tests\UI\Help\TextRetriever\EchoingTest
Definition:
EchoingTest.php:28
Purpose
TestCase
Echoing
components
ILIAS
UI
tests
Help
TextRetriever
EchoingTest.php
Generated on Wed Sep 3 2025 23:04:23 for ILIAS by
1.8.13 (using
Doxyfile
)