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 447 of file FilterTest.php.
451 ->getMockBuilder(
Input\Field\FormInputInternal::class)
470 "withAdditionalTransformation",
471 "getUpdateOnLoadCode",
474 "withAdditionalOnLoadCode",
478 "withResetTriggeredSignals",
479 "getTriggeredSignals" 481 ->setMockClassName(
"Mock_InputNo" . ($no++))
◆ testExtractParamData()
FilterTest::testExtractParamData |
( |
| ) |
|
Definition at line 218 of file FilterTest.php.
234 $request = $this->createMock(ServerRequestInterface::class);
236 ->expects($this->once())
237 ->method(
"getQueryParams")
239 $input_data = $filter->_extractParamData($request);
240 $this->assertInstanceOf(InputData::class, $input_data);
◆ testGetData()
FilterTest::testGetData |
( |
| ) |
|
Definition at line 296 of file FilterTest.php.
299 $request = $this->createMock(ServerRequestInterface::class);
301 ->expects($this->once())
302 ->method(
"getQueryParams")
307 ->expects($this->once())
308 ->method(
"getContent")
309 ->willReturn($df->ok(1));
311 ->expects($this->once())
312 ->method(
"withInput")
313 ->willReturn($input_1);
317 ->expects($this->once())
318 ->method(
"getContent")
319 ->willReturn($df->ok(2));
321 ->expects($this->once())
322 ->method(
"withInput")
323 ->willReturn($input_2);
339 $filter->setInputs([$input_1, $input_2]);
340 $filter = $filter->withRequest($request);
341 $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 243 of file FilterTest.php.
245 $request = $this->createMock(ServerRequestInterface::class);
246 $input_data = $this->createMock(InputData::class);
252 ->expects($this->once())
253 ->method(
"withInput")
255 ->willReturn($input_1);
257 ->expects($this->once())
258 ->method(
"getContent")
259 ->willReturn($df->ok(0));
263 ->expects($this->once())
264 ->method(
"withInput")
266 ->willReturn($input_2);
268 ->expects($this->once())
269 ->method(
"getContent")
270 ->willReturn($df->ok(0));
286 $filter->setInputs([$input_1, $input_2]);
287 $filter->input_data = $input_data;
289 $filter2 = $filter->withRequest($request);
291 $this->assertNotSame($filter2, $filter);
292 $this->assertInstanceOf(Filter::class, $filter2);
293 $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