ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
FilterFactoryTest Class Reference
+ Inheritance diagram for FilterFactoryTest:
+ Collaboration diagram for FilterFactoryTest:

Public Member Functions

 buildFactory ()
 
 test_implements_factory_interface ()
 
- Public Member Functions inherited from AbstractFactoryTest
 buildFactoryReflection ()
 
 methods_provider ()
 
 setUp ()
 
 test_proper_namespace ()
 
 test_proper_name ()
 
 test_check_yaml_extraction (ReflectionMethod $method_reflection, string $name)
 Tests whether the YAML Kitchen Sink info can be parsed. More...
 
 test_return_type (ReflectionMethod $method_reflection, string $name)
 Tests whether the method either returns a factory or a component. More...
 
 test_factory_method_name_compatible_docstring (ReflectionMethod $method_reflection, string $name)
 Tests whether the method name matches the return doctring? More...
 
 test_method_params (ReflectionMethod $method_reflection, string $name)
 Tests whether methods returning factories have no parameters. More...
 
 test_kitchensink_info_description (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_rivals (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_background (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_featurewiki (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_javascript (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_rules (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_context (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 kitchensink_info_settings_merged_with_defaults (string $name)
 

Data Fields

array $kitchensink_info_settings
 
string $factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Filter\\Factory'
 
- Data Fields inherited from AbstractFactoryTest
const COMPONENT = 1
 
const FACTORY = 2
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractFactoryTest
 returnsFactory (array $docstring_data)
 
 returnsComponent (array $docstring_data)
 
 isFactoryName (string $name)
 
 get_regex_factory_namespace ()
 

Detailed Description

Definition at line 28 of file FilterFactoryTest.php.

Member Function Documentation

◆ buildFactory()

FilterFactoryTest::buildFactory ( )
final

Definition at line 39 of file FilterFactoryTest.php.

39 : Factory
40 {
41 $df = new Data\Factory();
42 $language = $this->createMock(ilLanguage::class);
43 return new Factory(
44 new SignalGenerator(),
45 new \ILIAS\UI\Implementation\Component\Input\Field\Factory(
46 $this->createMock(\ILIAS\UI\Implementation\Component\Input\UploadLimitResolver::class),
47 new SignalGenerator(),
48 $df,
49 new ILIAS\Refinery\Factory($df, $language),
50 $language
51 )
52 );
53 }
Builds data types.
Definition: Factory.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.

Referenced by test_implements_factory_interface().

+ Here is the caller graph for this function:

◆ test_implements_factory_interface()

FilterFactoryTest::test_implements_factory_interface ( )

Definition at line 55 of file FilterFactoryTest.php.

55 : void
56 {
57 $f = $this->buildFactory();
58
59 $filter = $f->standard(
60 "#",
61 "#",
62 "#",
63 "#",
64 "#",
65 "#",
66 [],
67 []
68 );
69 $this->assertInstanceOf(Filter\Filter::class, $filter);
70 $this->assertInstanceOf(Filter\Standard::class, $filter);
71 }
This describes commonalities between all filters.
Definition: Filter.php:34

References Vendor\Package\$f, and buildFactory().

+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

string FilterFactoryTest::$factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Filter\\Factory'

Definition at line 36 of file FilterFactoryTest.php.

◆ $kitchensink_info_settings

array FilterFactoryTest::$kitchensink_info_settings
Initial value:
= [
"standard" => [
"context" => false,
]
]

Definition at line 30 of file FilterFactoryTest.php.


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