ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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(\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 Contains several chained tasks and infos about them.
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 71 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().

71  : Control\Factory
72  {
73  return new Control\Factory(
74  $this->buildFieldFactory(),
75  $this->buildDataFactory(),
76  $this->buildRefinery(),
77  new SignalGenerator(),
78  $this->getLanguage(),
79  );
80  }
getLanguage()
+ 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.

References buildDataFactory().

106  : Data\Factory
107  {
108  return $this->buildDataFactory();
109  }
+ 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 82 of file ViewControlTestBase.php.

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

82  : NoUIFactory
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  }
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: