19declare(strict_types=1);
21require_once(
'libs/composer/vendor/autoload.php');
23use PHPUnit\Framework\TestCase;
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);
48 $this->file_system->recursiveCopy(
49 $this->system_style_config->test_skin_original_path,
50 $this->system_style_config->test_skin_temp_path
54 $this->container =
$factory->skinStyleContainerFromId(
'skin1', $this->message_stack);
55 $this->style = $this->container->getSkin()->getStyle(
'style1');
60 $this->file_system->recursiveRemoveDir($this->system_style_config->test_skin_temp_path);
Customizing of pimple-DIC for ILIAS.
File System Helper, to reduce deps.
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
This class is responsible for all file system related actions related actions of a skin such as copyi...
ilSystemStyleConfigMock $system_style_config
ilFileSystemHelper $file_system
ilSystemStyleMessageStack $message_stack
ilSkinStyleContainer $container
ILIAS DI Container $save_dic
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
Used to stack messages to be shown to the user.