ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\test\InternalTest Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\test\InternalTest:
+ Collaboration diagram for ILIAS\LegalDocuments\test\InternalTest:

Public Member Functions

 testConstruct ()
 
 testAll ()
 
 testGet ()
 

Private Member Functions

 createWithDummy ()
 
 dummyConsumer ()
 
 wiring ()
 

Detailed Description

Definition at line 33 of file InternalTest.php.

Member Function Documentation

◆ createWithDummy()

ILIAS\LegalDocuments\test\InternalTest::createWithDummy ( )
private

Definition at line 52 of file InternalTest.php.

52 : Internal
53 {
54 return new Internal(
55 $this->fail(...),
56 fn() => $this->wiring(),
57 [
58 $this->dummyConsumer()::class
59 ]
60 );
61 }

References ILIAS\LegalDocuments\test\InternalTest\dummyConsumer(), and ILIAS\LegalDocuments\test\InternalTest\wiring().

Referenced by ILIAS\LegalDocuments\test\InternalTest\testAll(), and ILIAS\LegalDocuments\test\InternalTest\testGet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dummyConsumer()

ILIAS\LegalDocuments\test\InternalTest::dummyConsumer ( )
private

Definition at line 63 of file InternalTest.php.

63 : Consumer
64 {
65 return new class () implements Consumer {
66 public function uses(UseSlot $slot, LazyProvide $provide): UseSlot
67 {
68 return $slot;
69 }
70 public function id(): string
71 {
72 return self::class;
73 }
74 };
75 }

References ILIAS\GlobalScreen\Provider\id().

Referenced by ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testAll()

ILIAS\LegalDocuments\test\InternalTest::testAll ( )

Definition at line 42 of file InternalTest.php.

42 : void
43 {
44 $this->assertSame(['a' => 1, 'b' => 2, 'c' => 3], $this->createWithDummy()->all('foo'));
45 }

References ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

+ Here is the call graph for this function:

◆ testConstruct()

ILIAS\LegalDocuments\test\InternalTest::testConstruct ( )

Definition at line 37 of file InternalTest.php.

37 : void
38 {
39 $this->assertInstanceOf(Internal::class, new Internal($this->fail(...), $this->fail(...), []));
40 }

◆ testGet()

ILIAS\LegalDocuments\test\InternalTest::testGet ( )

Definition at line 47 of file InternalTest.php.

47 : void
48 {
49 $this->assertSame(2, $this->createWithDummy()->get('foo', 'b'));
50 }

References ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

+ Here is the call graph for this function:

◆ wiring()

ILIAS\LegalDocuments\test\InternalTest::wiring ( )
private

Definition at line 77 of file InternalTest.php.

77 : Wiring
78 {
79 return new class () extends Wiring {
80 public function __construct()
81 {
82 }
83 public function map(): Map
84 {
85 return new Map(['foo' => ['a' => 1, 'b' => 2, 'c' => 3]]);
86 }
87 };
88 }
__construct()
Constructor setup ILIAS global object @access public.
Definition: class.ilias.php:76

References ILIAS\__construct().

Referenced by ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: