ILIAS
release_8 Revision v8.19
|
Class ExamplesTest Checks if all examples are implemented and properly returning strings. More...
Public Member Functions | |
setUp () | |
testAllNonAbstractComponentsShowcaseExamples () | |
testAllExamplesRenderAString (string $example_function_name, string $example_path) | |
provideExampleFullFunctionNamesAndPath More... | |
provideExampleFullFunctionNamesAndPath () | |
testFullscreenModeExamples (string $example_function_name, string $example_path) | |
provideListOfFullscreenExamples More... | |
provideListOfFullscreenExamples () | |
![]() | |
setUp () | |
tearDown () | |
getUIFactory () | |
getTemplateFactory () | |
getResourceRegistry () | |
getLanguage () | |
getJavaScriptBinding () | |
getRefinery () | |
getImagePathResolver () | |
getDataFactory () | |
getDefaultRenderer (JavaScriptBinding $js_binding=null, array $with_stub_renderings=[]) | |
getDecoratedRenderer (Renderer $default) | |
normalizeHTML (string $html) | |
assertHTMLEquals (string $expected_html_as_string, string $html_as_string) | |
Protected Member Functions | |
setUpMockDependencies () | |
Some wiring up of dependencies to get all the examples running. More... | |
getEntriesFromCrawler () | |
![]() | |
brutallyTrimHTML (string $html) | |
A more radical version of normalizeHTML. More... | |
brutallyTrimSignals (string $html) | |
A naive replacement of all il_signal-ids with dots to ease comparisons of rendered output. More... | |
Protected Attributes | |
string | $path_to_base_factory = "src/UI/Factory.php" |
Container | $dic |
Class ExamplesTest Checks if all examples are implemented and properly returning strings.
Definition at line 32 of file ExamplesTest.php.
|
protected |
Crawler |
Definition at line 132 of file ExamplesTest.php.
Referenced by provideExampleFullFunctionNamesAndPath(), and testAllNonAbstractComponentsShowcaseExamples().
ExamplesTest::provideExampleFullFunctionNamesAndPath | ( | ) |
Definition at line 138 of file ExamplesTest.php.
References $name, and getEntriesFromCrawler().
ExamplesTest::provideListOfFullscreenExamples | ( | ) |
Definition at line 168 of file ExamplesTest.php.
ExamplesTest::setUp | ( | ) |
Definition at line 37 of file ExamplesTest.php.
References $_SERVER, and setUpMockDependencies().
|
protected |
Some wiring up of dependencies to get all the examples running.
If you examples needs additional dependencies, please add them here. However, please check carefully if those deps are really needed. Even if the examples, we try to keep them minimal. Note the most deps are wired up here as mocks only.
Definition at line 54 of file ExamplesTest.php.
References ILIAS_UI_TestBase\getLanguage(), and ILIAS_UI_TestBase\getTemplateFactory().
Referenced by setUp().
ExamplesTest::testAllExamplesRenderAString | ( | string | $example_function_name, |
string | $example_path | ||
) |
provideExampleFullFunctionNamesAndPath
Definition at line 116 of file ExamplesTest.php.
References $DIC, $dic, and Vendor\Package\$e.
ExamplesTest::testAllNonAbstractComponentsShowcaseExamples | ( | ) |
Crawler |
Definition at line 96 of file ExamplesTest.php.
References $DIC, $dic, and getEntriesFromCrawler().
ExamplesTest::testFullscreenModeExamples | ( | string | $example_function_name, |
string | $example_path | ||
) |
provideListOfFullscreenExamples
Definition at line 155 of file ExamplesTest.php.
References $DIC, $dic, and Vendor\Package\$e.
|
protected |
Definition at line 35 of file ExamplesTest.php.
Referenced by testAllExamplesRenderAString(), testAllNonAbstractComponentsShowcaseExamples(), and testFullscreenModeExamples().
|
protected |
Definition at line 34 of file ExamplesTest.php.