ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
TableTestBase Class Reference

Basic Tests for all Tables. More...

+ Inheritance diagram for TableTestBase:
+ Collaboration diagram for TableTestBase:

Protected Member Functions

 buildFieldFactory ()
 
 buildRefinery ()
 
 getViewControlFactory ()
 
 getViewControlContainerFactory ()
 
 getTableFactory ()
 
 getMockStorage ()
 

Detailed Description

Basic Tests for all Tables.

Definition at line 34 of file TableTestBase.php.

Member Function Documentation

◆ buildFieldFactory()

TableTestBase::buildFieldFactory ( )
protected

Definition at line 36 of file TableTestBase.php.

References buildRefinery(), and getLanguage().

Referenced by getViewControlFactory().

36  : FieldFactory
37  {
38  return new FieldFactory(
39  $this->createMock(\ILIAS\UI\Implementation\Component\Input\Field\Node\Factory::class),
40  $this->createMock(UploadLimitResolver::class),
41  new C\SignalGenerator(),
42  new \ILIAS\Data\Factory(),
43  $this->buildRefinery(),
44  $this->getLanguage()
45  );
46  }
This implements commonalities between inputs.
Definition: Input.php:42
Interface Observer Contains several chained tasks and infos about them.
getLanguage()
Builds data types.
Definition: Factory.php:35
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildRefinery()

TableTestBase::buildRefinery ( )
protected

Definition at line 48 of file TableTestBase.php.

Referenced by buildFieldFactory(), and getViewControlFactory().

48  : Refinery
49  {
50  return new Refinery(
51  new \ILIAS\Data\Factory(),
52  $this->createMock(ILIAS\Language\Language::class)
53  );
54  }
Interface Observer Contains several chained tasks and infos about them.
Builds data types.
Definition: Factory.php:35
+ Here is the caller graph for this function:

◆ getMockStorage()

TableTestBase::getMockStorage ( )
protected

Definition at line 90 of file TableTestBase.php.

References $data, and null.

Referenced by getTableFactory(), and DataTest\testDataTableWithIdAndStorage().

90  : ArrayAccess
91  {
92  return new class () implements ArrayAccess {
93  protected array $data = [];
94  public function offsetExists(mixed $offset): bool
95  {
96  return isset($this->data[$offset]);
97  }
98  public function offsetGet(mixed $offset): mixed
99  {
100  if(!$this->offsetExists($offset)) {
101  return null;
102  }
103  return $this->data[$offset];
104  }
105  public function offsetSet(mixed $offset, mixed $value): void
106  {
107  $this->data[$offset] = $value;
108  }
109  public function offsetUnset(mixed $offset): void
110  {
111  unset($this->data[$offset]);
112  }
113  };
114  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the caller graph for this function:

◆ getTableFactory()

TableTestBase::getTableFactory ( )
protected

Definition at line 75 of file TableTestBase.php.

References getLanguage(), getMockStorage(), getViewControlContainerFactory(), and getViewControlFactory().

Referenced by DataViewControlsTest\getTable(), DataTest\getTable(), TableRendererTestBase\getUIFactory(), DataTest\testDataTableActions(), DataTest\testDataTableBasicConstruction(), DataTest\testDataTableColumns(), DataTest\testDataTableConstructionWithErrorColumns(), DataTest\testDataTableConstructionWithoutColumns(), DataViewControlsTest\testDataTableHasNoFieldSelectionViewControl(), DataViewControlsTest\testDataTableHasNoOrderingViewControl(), DataViewControlsTest\testDataTableHasNoOrderingViewControlDueToRecordCount(), DataViewControlsTest\testDataTableHasNoPaginationViewControl(), DataViewControlsTest\testDataTableHasViewControls(), DataViewControlsTest\testDataTableViewControlStorage(), DataTest\testDataTableWithSelectedOptionalCols(), PresentationTest\testFullRendering(), PresentationTest\testMinimalRendering(), PresentationTest\testRenderEmptyTableEntry(), PresentationTest\testRowConstruction(), and PresentationTest\testTableConstruction().

75  : C\Table\Factory
76  {
77  return new C\Table\Factory(
78  new C\SignalGenerator(),
79  $this->getViewControlFactory(),
81  new \ILIAS\Data\Factory(),
82  new C\Table\Column\Factory($this->getLanguage()),
83  new C\Table\Action\Factory(),
84  $this->getMockStorage(),
85  new C\Table\DataRowBuilder(),
86  new C\Table\OrderingRowBuilder()
87  );
88  }
Interface Observer Contains several chained tasks and infos about them.
getLanguage()
Builds data types.
Definition: Factory.php:35
getViewControlContainerFactory()
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getViewControlContainerFactory()

TableTestBase::getViewControlContainerFactory ( )
protected

Definition at line 67 of file TableTestBase.php.

References getViewControlFactory().

Referenced by getTableFactory().

67  : ViewControlContainer\Factory
68  {
69  return new ViewControlContainer\Factory(
70  new C\SignalGenerator(),
71  $this->getViewControlFactory(),
72  );
73  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getViewControlFactory()

TableTestBase::getViewControlFactory ( )
protected

Definition at line 56 of file TableTestBase.php.

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

Referenced by getTableFactory(), and getViewControlContainerFactory().

56  : ViewControl\Factory
57  {
58  return new ViewControl\Factory(
59  $this->buildFieldFactory(),
60  new \ILIAS\Data\Factory(),
61  $this->buildRefinery(),
62  new C\SignalGenerator(),
63  $this->getLanguage(),
64  );
65  }
Interface Observer Contains several chained tasks and infos about them.
getLanguage()
Builds data types.
Definition: Factory.php:35
+ 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: