ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

Referenced by buildVCFactory().

59  : FieldFactory
60  {
61  return new FieldFactory(
62  $this->createMock(UploadLimitResolver::class),
63  new SignalGenerator(),
64  $this->buildDataFactory(),
65  $this->buildRefinery(),
66  $this->getLanguage()
67  );
68  }
getLanguage()
+ 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.

References buildDataFactory().

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

51  : Refinery
52  {
53  return new Refinery(
54  $this->buildDataFactory(),
55  $this->createMock(ILIAS\Language\Language::class)
56  );
57  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildVCFactory()

ViewControlTestBase::buildVCFactory ( )
protected

Definition at line 70 of file ViewControlTestBase.php.

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(), ViewControlSortationTest\testViewControlSortationConstruct(), ViewControlSortationTest\testViewControlSortationRenderingOutsideContainer(), ViewControlSortationTest\testViewControlSortationWithInput(), and ViewControlSortationTest\testViewControlSortationWithWrongValue().

70  : Control\Factory
71  {
72  return new Control\Factory(
73  $this->buildFieldFactory(),
74  $this->buildDataFactory(),
75  $this->buildRefinery(),
76  new SignalGenerator(),
77  $this->getLanguage(),
78  );
79  }
getLanguage()
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDataFactory()

ViewControlTestBase::getDataFactory ( )

Definition at line 105 of file ViewControlTestBase.php.

References buildDataFactory().

105  : Data\Factory
106  {
107  return $this->buildDataFactory();
108  }
+ Here is the call graph for this function:

◆ getNamesource()

ViewControlTestBase::getNamesource ( )
protected

Definition at line 32 of file ViewControlTestBase.php.

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

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:26
+ Here is the caller graph for this function:

◆ getUIFactory()

ViewControlTestBase::getUIFactory ( )

Definition at line 81 of file ViewControlTestBase.php.

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

81  : NoUIFactory
82  {
83  $factory = new class () extends NoUIFactory {
84  protected SignalGenerator $sig_gen;
85  public function __construct()
86  {
87  $this->sig_gen = new SignalGenerator();
88  }
89  public function button(): I\Button\Factory
90  {
91  return new I\Button\Factory();
92  }
93  public function symbol(): I\Symbol\Factory
94  {
95  return new I\Symbol\Factory(
96  new I\Symbol\Icon\Factory(),
97  new I\Symbol\Glyph\Factory(),
98  new I\Symbol\Avatar\Factory()
99  );
100  }
101  };
102  return $factory;
103  }
button(string $caption, string $cmd)
Builds data types.
Definition: Factory.php:35
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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