ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 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

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

Referenced by testImplementsInterfaces().

38  {
39  return [
40  new \ILIAS\UI\Implementation\Component\Table\Action\Factory(),
41  new Data\Factory()
42  ];
43  }
+ Here is the caller graph for this function:

◆ testImplementsInterfaces()

ActionFactoryTest::testImplementsInterfaces ( )

Definition at line 45 of file ActionFactoryTest.php.

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

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
URLBuilder.
Definition: URLBuilder.php:39
+ 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

Definition at line 29 of file ActionFactoryTest.php.

◆ rules

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

Definition at line 30 of file ActionFactoryTest.php.


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