ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 getMethodsProvider More...
 
 testKitchensinkInfoRivals (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoBackground (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoFeatureWiki (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoJavaScript (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoRules (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoContext (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 kitchensinkInfoSettingsMergedWithDefaults (string $name)
 

Static Public Attributes

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

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:40
+ 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

Definition at line 29 of file ActionFactoryTest.php.

◆ rules

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