19 declare(strict_types=1);
21 require_once(
'libs/composer/vendor/autoload.php');
35 protected function setUp(): void
38 $DIC[
'tpl'] = $this->getMockBuilder(ilGlobalTemplateInterface::class)->getMock();
42 if (!file_exists($this->system_style_config->test_skin_temp_path)) {
43 mkdir($this->system_style_config->test_skin_temp_path);
47 include_once(
'./tests/UI/Base.php');
51 $this->file_system->recursiveCopy(
52 $this->system_style_config->test_skin_original_path,
53 $this->system_style_config->test_skin_temp_path
57 $this->container = $factory->skinStyleContainerFromId(
'skin1', $this->message_stack);
58 $this->style = $this->container->getSkin()->getStyle(
'style1');
63 $files = scandir($directory);
66 foreach ($files as $file) {
67 if (is_file($directory .
'/' . $file)) {
68 $content .= file_get_contents($directory .
'/' . $file);
77 $this->file_system->recursiveRemoveDir($this->system_style_config->test_skin_temp_path);
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
File System Helper, to reduce deps.
This class is responsible for all file system related actions related actions of a skin such as copyi...
ilSystemStyleConfigMock $system_style_config
getAllContentOfFolder(string $directory)
ilSystemStyleMessageStack $message_stack
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
ilSkinStyleContainer $container
Used to stack messages to be shown to the user.
ilFileSystemHelper $file_system
ILIAS DI Container $save_dic