ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
FilterFactoryTest Class Reference
+ Inheritance diagram for FilterFactoryTest:
+ Collaboration diagram for FilterFactoryTest:

Public Member Functions

 buildFactory ()
 
 testImplementsFactoryInterface ()
 
- Public Member Functions inherited from AbstractFactoryTestCase
 setUp ()
 
 testProperNamespace ()
 
 testProperName ()
 
 testCheckYamlExtraction (ReflectionMethod $method_reflection, string $name)
 Tests whether the YAML Kitchen Sink info can be parsed. More...
 
 testReturnType (ReflectionMethod $method_reflection, string $name)
 Tests whether the method either returns a factory or a component. More...
 
 testFactoryMethodNameCompatibleDocstring (ReflectionMethod $method_reflection, string $name)
 Tests whether the method name matches the return doctring? More...
 
 testMethodParams (ReflectionMethod $method_reflection, string $name)
 Tests whether methods returning factories have no parameters. More...
 
 testKitchensinkInfoDescription (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoRivals (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoBackground (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoFeatureWiki (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoJavaScript (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoRules (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoContext (ReflectionMethod $method_reflection, string $name)
 
 kitchensinkInfoSettingsMergedWithDefaults (string $name)
 

Static Public Attributes

static array $kitchensink_info_settings
 
static array static string $factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Filter\\Factory'
 
- Static Public Attributes inherited from AbstractFactoryTestCase
static string $factory_title = ''
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractFactoryTestCase
static buildFactoryReflection ()
 
static getMethodsProvider ()
 
- Data Fields inherited from AbstractFactoryTestCase
const COMPONENT = 1
 
const FACTORY = 2
 
- Protected Member Functions inherited from AbstractFactoryTestCase
 returnsFactory (array $docstring_data)
 
 returnsComponent (array $docstring_data)
 
 isFactoryName (string $name)
 
 getRegexFactoryNamespace ()
 

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 testImplementsFactoryInterface().

39  : Factory
40  {
41  $df = new Data\Factory();
42  $language = $this->createMock(ILIAS\Language\Language::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\Field\Node\Factory::class),
47  $this->createMock(\ILIAS\UI\Implementation\Component\Input\UploadLimitResolver::class),
48  new SignalGenerator(),
49  $df,
50  new ILIAS\Refinery\Factory($df, $language),
51  $language
52  )
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:

◆ testImplementsFactoryInterface()

FilterFactoryTest::testImplementsFactoryInterface ( )

Definition at line 56 of file FilterFactoryTest.php.

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

56  : void
57  {
58  $f = $this->buildFactory();
59 
60  $filter = $f->standard(
61  "#",
62  "#",
63  "#",
64  "#",
65  "#",
66  "#",
67  [],
68  []
69  );
70  $this->assertInstanceOf(Filter\Filter::class, $filter);
71  $this->assertInstanceOf(Filter\Standard::class, $filter);
72  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

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

Definition at line 36 of file FilterFactoryTest.php.

◆ $kitchensink_info_settings

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

Definition at line 30 of file FilterFactoryTest.php.


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