ILIAS  release_8 Revision v8.24
ilSystemStyleBaseFSTest Class Reference
+ Inheritance diagram for ilSystemStyleBaseFSTest:
+ Collaboration diagram for ilSystemStyleBaseFSTest:

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ilSystemStyleConfigMock $system_style_config
 
ilSkinStyleContainer $container
 
ilSkinStyle $style
 
ilFileSystemHelper $file_system
 
ILIAS DI Container $save_dic = null
 
ilLanguage $lng
 
ilSystemStyleMessageStack $message_stack
 

Detailed Description

Definition at line 25 of file ilSystemStyleBaseFSTest.php.

Member Function Documentation

◆ setUp()

ilSystemStyleBaseFSTest::setUp ( )
protected

Reimplemented in ilSystemStyleIconsGUITest, ilSystemStyleLessGUITest, ilSystemStyleOverviewGUITest, ilSkinFactoryTest, ilSkinStyleContainerTest, and ilSkinTest.

Definition at line 35 of file ilSystemStyleBaseFSTest.php.

35 : void
36 {
37 global $DIC;
38 $DIC['tpl'] = $this->getMockBuilder(ilGlobalTemplateInterface::class)->getMock();
39 $this->system_style_config = new ilSystemStyleConfigMock();
40 $this->message_stack = new ilSystemStyleMessageStack($DIC['tpl']);
41
42 if (!file_exists($this->system_style_config->test_skin_temp_path)) {
43 mkdir($this->system_style_config->test_skin_temp_path);
44 }
45 $this->lng = new ilLanguageMock();
46
47 $this->file_system = new ilFileSystemHelper($this->lng, $this->message_stack);
48 $this->file_system->recursiveCopy(
49 $this->system_style_config->test_skin_original_path,
50 $this->system_style_config->test_skin_temp_path
51 );
52
53 $factory = new ilSkinFactory($this->lng, $this->system_style_config);
54 $this->container = $factory->skinStyleContainerFromId('skin1', $this->message_stack);
55 $this->style = $this->container->getSkin()->getStyle('style1');
56 }
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...
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
Used to stack messages to be shown to the user.
global $DIC
Definition: feed.php:28
$factory
Definition: metadata.php:75

References $DIC, $factory, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ tearDown()

ilSystemStyleBaseFSTest::tearDown ( )
protected

Definition at line 58 of file ilSystemStyleBaseFSTest.php.

58 : void
59 {
60 $this->file_system->recursiveRemoveDir($this->system_style_config->test_skin_temp_path);
61 }

Field Documentation

◆ $container

◆ $file_system

ilFileSystemHelper ilSystemStyleBaseFSTest::$file_system
protected

Definition at line 30 of file ilSystemStyleBaseFSTest.php.

◆ $lng

ilLanguage ilSystemStyleBaseFSTest::$lng
protected

◆ $message_stack

ilSystemStyleMessageStack ilSystemStyleBaseFSTest::$message_stack
protected

Definition at line 33 of file ilSystemStyleBaseFSTest.php.

◆ $save_dic

ILIAS DI Container ilSystemStyleBaseFSTest::$save_dic = null
protected

Definition at line 31 of file ilSystemStyleBaseFSTest.php.

◆ $style

ilSkinStyle ilSystemStyleBaseFSTest::$style
protected

Definition at line 29 of file ilSystemStyleBaseFSTest.php.

◆ $system_style_config

ilSystemStyleConfigMock ilSystemStyleBaseFSTest::$system_style_config
protected

Definition at line 27 of file ilSystemStyleBaseFSTest.php.


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