ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble Class Reference

Minimal LanguageActivity making the protected invalidMarkupCustomizingEntries() callable. More...

+ Inheritance diagram for ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble:
+ Collaboration diagram for ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble:

Public Member Functions

 entries (array $skipped, array $language_keys)
 
 duplicateEntries (array $skipped, array $language_keys)
 
 getDescription ()
 
 getInputDescription (FieldFactory $f)
 
 getOutputDescription (Description\Factory $f)
 
 perform (mixed $parameters)
 This shall perform the activity. More...
 
- Public Member Functions inherited from ILIAS\Language\Activities\LanguageActivity
 __construct (private readonly ?RBAC $rbac, private readonly LanguageFolder $language_folder, protected readonly DataFactory $data=new DataFactory(),)
 
 getType ()
 
 isAllowedToPerform (int $usr_id, mixed $parameters)
 This shall check if the given user is allowed to perform the activity based on business rules of this component. More...
 
 maybePerformAs (InputFactory $input_factory, int $usr_id, array $raw_parameters)
 Grinds the $raw_parameters through the input description, checks if the users is allowed to perform the action as requested and, if so, then attempts to performs it. More...
 
- Public Member Functions inherited from ILIAS\Component\Activities\ActivityImpl
 getName ()
 Shall return classname of the Activity, wrapped in Name. More...
 
 getName ()
 Shall return classname of the Activity, wrapped in Name. More...
 
 getType ()
 
 getDescription ()
 
 getInputDescription (FieldFactory $f)
 
 getOutputDescription (Description\Factory $f)
 
 isAllowedToPerform (int $usr_id, mixed $parameters)
 This shall check if the given user is allowed to perform the activity based on business rules of this component. More...
 
 perform (mixed $parameters)
 This shall perform the activity. More...
 
 maybePerformAs (InputFactory $input_factory, int $usr_id, array $raw_parameters)
 Grinds the $raw_parameters through the input description, checks if the users is allowed to perform the action as requested and, if so, then attempts to performs it. More...
 

Protected Member Functions

 normalizeParameters (array $grind_result)
 
- Protected Member Functions inherited from ILIAS\Language\Activities\LanguageActivity
 overlayWriteFailedOutputField (Description\Factory $f)
 The database was written, but the PO/MO overlay of a module was not: callers must not report plain success. More...
 
 invalidMarkupCustomizingOutputField (Description\Factory $f)
 
 duplicateCustomizingOutputField (Description\Factory $f)
 
 duplicateCustomizingEntries (array $skipped, array $language_keys)
 
 invalidMarkupCustomizingEntries (array $skipped, array $language_keys)
 
 normalizeParameters (array $grind_result)
 

Detailed Description

Minimal LanguageActivity making the protected invalidMarkupCustomizingEntries() callable.

Definition at line 296 of file LanguageActivityTest.php.

Member Function Documentation

◆ duplicateEntries()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::duplicateEntries ( array  $skipped,
array  $language_keys 
)
Parameters
array<string,array<string,list<string>>>$skipped
list<string>$language_keys
Returns
list<string>

Definition at line 313 of file LanguageActivityTest.php.

313 : array
314 {
315 return $this->duplicateCustomizingEntries($skipped, $language_keys);
316 }
duplicateCustomizingEntries(array $skipped, array $language_keys)

References ILIAS\Language\Activities\LanguageActivity\duplicateCustomizingEntries().

+ Here is the call graph for this function:

◆ entries()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::entries ( array  $skipped,
array  $language_keys 
)
Parameters
array<string,array<string,list<string>>>$skipped
list<string>$language_keys
Returns
list<string>

Definition at line 303 of file LanguageActivityTest.php.

303 : array
304 {
305 return $this->invalidMarkupCustomizingEntries($skipped, $language_keys);
306 }
invalidMarkupCustomizingEntries(array $skipped, array $language_keys)

References ILIAS\Language\Activities\LanguageActivity\invalidMarkupCustomizingEntries().

+ Here is the call graph for this function:

◆ getDescription()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::getDescription ( )

Implements ILIAS\Component\Activities\Activity.

Definition at line 318 of file LanguageActivityTest.php.

318 : Text\SimpleDocumentMarkdown
319 {
320 return $this->data->text()->markdown()->simpleDocument('Test double for invalidMarkupCustomizingEntries().');
321 }

◆ getInputDescription()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::getInputDescription ( FieldFactory  $f)

Implements ILIAS\Component\Activities\Activity.

Definition at line 323 of file LanguageActivityTest.php.

323 : FormInput
324 {
325 throw new \LogicException(__METHOD__ . ' is not used by this test double.');
326 }

◆ getOutputDescription()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::getOutputDescription ( Description\Factory  $f)

Implements ILIAS\Component\Activities\Activity.

Definition at line 328 of file LanguageActivityTest.php.

328 : Description\Description
329 {
330 throw new \LogicException(__METHOD__ . ' is not used by this test double.');
331 }

◆ normalizeParameters()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::normalizeParameters ( array  $grind_result)
protected
Returns
array<string, mixed>

Reimplemented from ILIAS\Language\Activities\LanguageActivity.

Definition at line 341 of file LanguageActivityTest.php.

341 : array
342 {
343 throw new \LogicException(__METHOD__ . ' is not used by this test double.');
344 }

◆ perform()

ILIAS\Language\Tests\Activities\LanguageActivityInvalidMarkupTestDouble::perform ( mixed  $parameters)

This shall perform the activity.

This shall not check if a user is allowed to perform the activity. The returned data should match the Description given by getOutputDescription.

Exceptions
anySPL Exception (https://www.php.net/manual/en/spl.exceptions.php)
Parameters
mixed$parameterswhatever the FormInput from getInputDescription produces.

Implements ILIAS\Component\Activities\Activity.

Definition at line 333 of file LanguageActivityTest.php.

333 : mixed
334 {
335 throw new \LogicException(__METHOD__ . ' is not used by this test double.');
336 }

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