Test on filter implementation.
More...
Test on filter implementation.
Definition at line 113 of file FilterTest.php.
◆ buildButtonFactory()
FilterTest::buildButtonFactory |
( |
| ) |
|
|
protected |
◆ buildDataFactory()
FilterTest::buildDataFactory |
( |
| ) |
|
◆ buildFactory()
FilterTest::buildFactory |
( |
| ) |
|
|
protected |
◆ buildGlyphFactory()
FilterTest::buildGlyphFactory |
( |
| ) |
|
|
protected |
◆ buildInputFactory()
FilterTest::buildInputFactory |
( |
| ) |
|
|
protected |
Definition at line 123 of file FilterTest.php.
123 : Input\Field\Factory
125 $df =
new Data\Factory();
126 $language = $this->createMock(
ILIAS\
Language\Language::class);
Interface Observer Contains several chained tasks and infos about them.
◆ buildLegacyFactory()
FilterTest::buildLegacyFactory |
( |
| ) |
|
|
protected |
◆ buildListingFactory()
FilterTest::buildListingFactory |
( |
| ) |
|
|
protected |
◆ buildPopoverFactory()
FilterTest::buildPopoverFactory |
( |
| ) |
|
|
protected |
◆ getUIFactory()
FilterTest::getUIFactory |
( |
| ) |
|
◆ inputMock()
FilterTest::inputMock |
( |
| ) |
|
|
protected |
- Returns
- Input|mixed|MockObject
Definition at line 448 of file FilterTest.php.
452 ->getMockBuilder(
Input\Field\FormInputInternal::class)
471 "withAdditionalTransformation",
472 "getUpdateOnLoadCode",
475 "withAdditionalOnLoadCode",
479 "withResetTriggeredSignals",
480 "getTriggeredSignals",
483 ->setMockClassName(
"Mock_InputNo" . ($no++))
◆ testExtractParamData()
FilterTest::testExtractParamData |
( |
| ) |
|
Definition at line 219 of file FilterTest.php.
235 $request = $this->createMock(ServerRequestInterface::class);
237 ->expects($this->once())
238 ->method(
"getQueryParams")
240 $input_data = $filter->_extractParamData($request);
241 $this->assertInstanceOf(InputData::class, $input_data);
◆ testGetData()
FilterTest::testGetData |
( |
| ) |
|
Definition at line 297 of file FilterTest.php.
300 $request = $this->createMock(ServerRequestInterface::class);
302 ->expects($this->once())
303 ->method(
"getQueryParams")
308 ->expects($this->once())
309 ->method(
"getContent")
310 ->willReturn($df->ok(1));
312 ->expects($this->once())
313 ->method(
"withInput")
314 ->willReturn($input_1);
318 ->expects($this->once())
319 ->method(
"getContent")
320 ->willReturn($df->ok(2));
322 ->expects($this->once())
323 ->method(
"withInput")
324 ->willReturn($input_2);
340 $filter->setInputs([$input_1, $input_2]);
341 $filter = $filter->withRequest($request);
342 $this->assertEquals([1, 2], $filter->getData());
◆ testGetInputs()
FilterTest::testGetInputs |
( |
| ) |
|
◆ testWithActivated()
FilterTest::testWithActivated |
( |
| ) |
|
◆ testWithCollapsed()
FilterTest::testWithCollapsed |
( |
| ) |
|
◆ testWithDeactivated()
FilterTest::testWithDeactivated |
( |
| ) |
|
◆ testWithExpanded()
FilterTest::testWithExpanded |
( |
| ) |
|
◆ testWithRequest()
FilterTest::testWithRequest |
( |
| ) |
|
Definition at line 244 of file FilterTest.php.
246 $request = $this->createMock(ServerRequestInterface::class);
247 $input_data = $this->createMock(InputData::class);
253 ->expects($this->once())
254 ->method(
"withInput")
256 ->willReturn($input_1);
258 ->expects($this->once())
259 ->method(
"getContent")
260 ->willReturn($df->ok(0));
264 ->expects($this->once())
265 ->method(
"withInput")
267 ->willReturn($input_2);
269 ->expects($this->once())
270 ->method(
"getContent")
271 ->willReturn($df->ok(0));
287 $filter->setInputs([$input_1, $input_2]);
288 $filter->input_data = $input_data;
290 $filter2 = $filter->withRequest($request);
292 $this->assertNotSame($filter2, $filter);
293 $this->assertInstanceOf(Filter::class, $filter2);
294 $this->assertEquals([$input_1, $input_2], $filter2->getInputs());
The documentation for this class was generated from the following file:
- components/ILIAS/UI/tests/Component/Input/Container/Filter/FilterTest.php