ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ActionFactoryTest Class Reference
+ Inheritance diagram for ActionFactoryTest:
+ Collaboration diagram for ActionFactoryTest:

Public Member Functions

 testImplementsInterfaces ()
 
- 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 string $factory_title = 'ILIAS\\UI\\Component\\Table\\Action\\Factory'
 
- Static Public Attributes inherited from AbstractFactoryTestCase
static string $factory_title = ''
 

Protected Member Functions

 buildFactories ()
 
- Protected Member Functions inherited from AbstractFactoryTestCase
 returnsFactory (array $docstring_data)
 
 returnsComponent (array $docstring_data)
 
 isFactoryName (string $name)
 
 getRegexFactoryNamespace ()
 

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
 

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

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

Definition at line 35 of file ActionFactoryTest.php.

◆ $kitchensink_info_settings

array ActionFactoryTest::$kitchensink_info_settings
static
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: