ILIAS  release_8 Revision v8.24
ActionFactoryTest Class Reference
+ Inheritance diagram for ActionFactoryTest:
+ Collaboration diagram for ActionFactoryTest:

Public Member Functions

 testImplementsInterfaces ()
 
- 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

 $kitchensink_info_settings
 
 $factory_title = 'ILIAS\\UI\\Component\\Table\\Action\\Factory'
 
- Data Fields inherited from AbstractFactoryTest
const COMPONENT = 1
 
const FACTORY = 2
 

Protected Member Functions

 buildFactories ()
 
- 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 27 of file ActionFactoryTest.php.

Member Function Documentation

◆ buildFactories()

ActionFactoryTest::buildFactories ( )
protected

Definition at line 37 of file ActionFactoryTest.php.

38 {
39 return [
40 new \ILIAS\UI\Implementation\Component\Table\Action\Factory(),
41 new Data\Factory()
42 ];
43 }

Referenced by testImplementsInterfaces().

+ Here is the caller graph for this function:

◆ testImplementsInterfaces()

ActionFactoryTest::testImplementsInterfaces ( )

Definition at line 45 of file ActionFactoryTest.php.

46 {
47 list($f, $df) = $this->buildFactories();
48 $target = $df->uri('http://wwww.ilias.de?ref_id=1');
49 $url_builder = new URLBuilder($target);
50 list($builder, $token) = array_values(
51 $url_builder->acquireParameter(['namespace'], 'rowids')
52 );
53
54 $standard = $f->standard("", $builder, $token);
55 $this->assertInstanceOf(Action\Action::class, $standard);
56 $this->assertInstanceOf(Action\Standard::class, $standard);
57
58 $single = $f->single("", $builder, $token);
59 $this->assertInstanceOf(Action\Action::class, $single);
60 $this->assertInstanceOf(Action\Single::class, $single);
61
62 $multi = $f->multi("", $builder, $token);
63 $this->assertInstanceOf(Action\Action::class, $multi);
64 $this->assertInstanceOf(Action\Multi::class, $multi);
65 }
$token
Definition: xapitoken.php:70

References Vendor\Package\$f, $token, and buildFactories().

+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

ActionFactoryTest::$factory_title = 'ILIAS\\UI\\Component\\Table\\Action\\Factory'

Definition at line 35 of file ActionFactoryTest.php.

◆ $kitchensink_info_settings

ActionFactoryTest::$kitchensink_info_settings
Initial value:
= [
"standard" => ["context" => false, "rules" => false],
"single" => ["context" => false, "rules" => false],
"multi" => ["context" => false, "rules" => false]
]

Definition at line 29 of file ActionFactoryTest.php.


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