ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ViewControlTestBase Class Reference
+ Inheritance diagram for ViewControlTestBase:
+ Collaboration diagram for ViewControlTestBase:

Public Member Functions

 getUIFactory ()
 
 getDataFactory ()
 

Protected Member Functions

 getNamesource ()
 
 buildDataFactory ()
 
 buildRefinery ()
 
 buildFieldFactory ()
 
 buildVCFactory ()
 

Detailed Description

Definition at line 30 of file ViewControlTestBase.php.

Member Function Documentation

◆ buildDataFactory()

◆ buildFieldFactory()

ViewControlTestBase::buildFieldFactory ( )
protected

Definition at line 59 of file ViewControlTestBase.php.

59 : FieldFactory
60 {
61 return new FieldFactory(
62 $this->createMock(\ILIAS\UI\Implementation\Component\Input\Field\Node\Factory::class),
63 $this->createMock(UploadLimitResolver::class),
64 new SignalGenerator(),
65 $this->buildDataFactory(),
66 $this->buildRefinery(),
67 $this->getLanguage()
68 );
69 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
getLanguage()

References buildDataFactory(), buildRefinery(), and getLanguage().

Referenced by buildVCFactory().

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

◆ buildRefinery()

ViewControlTestBase::buildRefinery ( )
protected

Definition at line 51 of file ViewControlTestBase.php.

51 : Refinery
52 {
53 return new Refinery(
54 $this->buildDataFactory(),
55 $this->createMock(ILIAS\Language\Language::class)
56 );
57 }

References buildDataFactory().

Referenced by buildFieldFactory(), buildVCFactory(), ViewControlInputGenericTest\getViewControl(), and ViewControlInputGenericTest\testViewControlWithInput().

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

◆ buildVCFactory()

ViewControlTestBase::buildVCFactory ( )
protected

Definition at line 71 of file ViewControlTestBase.php.

72 {
73 return new Control\Factory(
74 $this->buildFieldFactory(),
75 $this->buildDataFactory(),
76 $this->buildRefinery(),
77 new SignalGenerator(),
78 $this->getLanguage(),
79 );
80 }
Builds data types.
Definition: Factory.php:36

References buildDataFactory(), buildFieldFactory(), buildRefinery(), and getLanguage().

Referenced by ViewControlNullTest\testViewControlFieldNullRendering(), ViewControlFieldSelectionTest\testViewControlFieldSelectionConstruct(), ViewControlModeTest\testViewControlFieldSelectionConstruct(), ViewControlFieldSelectionTest\testViewControlFieldSelectionRendering(), ViewControlFieldSelectionTest\testViewControlFieldSelectionRenderingOutsideContainer(), ViewControlFieldSelectionTest\testViewControlFieldSelectionWithInput(), ViewControlFieldSelectionTest\testViewControlFieldSelectionWithWrongValue(), ViewControlSortationTest\testViewControlFieldSortationRendering(), ViewControlSortationTest\testViewControlFieldWithSignalsRendering(), ViewControlGroupTest\testViewControlGroupCreation(), ViewControlGroupTest\testViewControlGroupGetContent(), ViewControlGroupTest\testViewControlGroupRendering(), ViewControlModeTest\testViewControlModeRendering(), ViewControlModeTest\testViewControlModeRenderingOutsideContainer(), ViewControlModeTest\testViewControlModeWithInput(), ViewControlModeTest\testViewControlModeWithoutOptions(), ViewControlModeTest\testViewControlModeWithWrongOptions(), ViewControlModeTest\testViewControlModeWithWrongValue(), ViewControlPaginationTest\testViewControlPaginationConstruct(), ViewControlPaginationTest\testViewControlPaginationMutators(), ViewControlPaginationTest\testViewControlPaginationWithWrongValue(), ViewControlSortationTest\testViewControlSortationConstruct(), ViewControlSortationTest\testViewControlSortationRenderingOutsideContainer(), ViewControlSortationTest\testViewControlSortationWithInput(), and ViewControlSortationTest\testViewControlSortationWithWrongValue().

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

◆ getDataFactory()

ViewControlTestBase::getDataFactory ( )

Definition at line 106 of file ViewControlTestBase.php.

106 : Data\Factory
107 {
108 return $this->buildDataFactory();
109 }

References buildDataFactory().

+ Here is the call graph for this function:

◆ getNamesource()

ViewControlTestBase::getNamesource ( )
protected

Definition at line 32 of file ViewControlTestBase.php.

33 {
34 return new class () implements NameSource {
35 public int $count = 0;
36 public function getNewName(): string
37 {
38 $name = "name_{$this->count}";
39 $this->count++;
40
41 return $name;
42 }
43 };
44 }
Describes a source for input names.
Definition: NameSource.php:27

Referenced by ViewControlFieldSelectionTest\testViewControlFieldSelectionWithInput(), ViewControlModeTest\testViewControlModeWithInput(), ViewControlSortationTest\testViewControlSortationWithInput(), and ViewControlInputGenericTest\testViewControlWithInput().

+ Here is the caller graph for this function:

◆ getUIFactory()

ViewControlTestBase::getUIFactory ( )

Definition at line 82 of file ViewControlTestBase.php.

83 {
84 $factory = new class () extends NoUIFactory {
85 protected SignalGenerator $sig_gen;
86 public function __construct()
87 {
88 $this->sig_gen = new SignalGenerator();
89 }
90 public function button(): I\Button\Factory
91 {
92 return new I\Button\Factory();
93 }
94 public function symbol(): I\Symbol\Factory
95 {
96 return new I\Symbol\Factory(
97 new I\Symbol\Icon\Factory(),
98 new I\Symbol\Glyph\Factory(),
99 new I\Symbol\Avatar\Factory()
100 );
101 }
102 };
103 return $factory;
104 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
button(string $caption, string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21

References ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\button(), and ILIAS\Repository\symbol().

+ Here is the call graph for this function:

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