ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 methods_provider More...
 
 test_kitchensink_info_rivals (ReflectionMethod $method_reflection, string $name)
 methods_provider More...
 
 test_kitchensink_info_background (ReflectionMethod $method_reflection, string $name)
 methods_provider More...
 
 test_kitchensink_info_featurewiki (ReflectionMethod $method_reflection, string $name)
 methods_provider More...
 
 test_kitchensink_info_javascript (ReflectionMethod $method_reflection, string $name)
 methods_provider More...
 
 test_kitchensink_info_rules (ReflectionMethod $method_reflection, string $name)
 methods_provider More...
 
 test_kitchensink_info_context (ReflectionMethod $method_reflection, string $name)
 methods_provider More...
 
 kitchensink_info_settings_merged_with_defaults (string $name)
 

Data Fields

array $kitchensink_info_settings
 
array 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.

Referenced by test_implements_factory_interface().

39  : Factory
40  {
41  $df = new Data\Factory();
42  $language = $this->createMock(ilLanguage::class);
43  return new Factory(
44  new SignalGenerator(),
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  }
Class Factory.
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ 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.

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

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:33
+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

array 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: