ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\App\tests\RootFolderTest Class Reference
+ Inheritance diagram for ILIAS\App\tests\RootFolderTest:
+ Collaboration diagram for ILIAS\App\tests\RootFolderTest:

Protected Member Functions

 setUp ()
 

Protected Attributes

array $ALLOWED_ROOT_FOLDER_DIRS = []
 
array $ALLOWED_ROOT_FOLDER_FILES = []
 

Private Member Functions

 getAppRootFolderOrFail ()
 

Private Attributes

const array ALLOWED_ROOT_FOLDER_FILES
 
const array ALLOWED_ROOT_FOLDER_DIRS
 

Detailed Description

Definition at line 25 of file RootFolderTest.php.

Member Function Documentation

◆ getAppRootFolderOrFail()

ILIAS\App\tests\RootFolderTest::getAppRootFolderOrFail ( )
private

Definition at line 89 of file RootFolderTest.php.

References ILIAS\UI\examples\Symbol\Glyph\Sort\sort().

89  : string
90  {
91  $app_root_folder = __DIR__ . "/../../../../";
92 
93  if (!is_file($app_root_folder . '/ilias_version.php')) {
94  $this->fail('Could not determine ILIAS root folder');
95  }
96 
97  return $app_root_folder;
98  }
+ Here is the call graph for this function:

◆ setUp()

ILIAS\App\tests\RootFolderTest::setUp ( )
protected

Definition at line 77 of file RootFolderTest.php.

77  : void
78  {
79  $this->ALLOWED_ROOT_FOLDER_DIRS = array_merge(
80  self::ALLOWED_ROOT_FOLDER_DIRS,
81  explode(",", (string) getenv('ALLOWED_ROOT_FOLDER_DIRS'))
82  );
83  $this->ALLOWED_ROOT_FOLDER_FILES = array_merge(
84  self::ALLOWED_ROOT_FOLDER_FILES,
85  explode(",", (string) getenv('ALLOWED_ROOT_FOLDER_FILES'))
86  );
87  }

Field Documentation

◆ $ALLOWED_ROOT_FOLDER_DIRS

array ILIAS\App\tests\RootFolderTest::$ALLOWED_ROOT_FOLDER_DIRS = []
protected

Definition at line 74 of file RootFolderTest.php.

◆ $ALLOWED_ROOT_FOLDER_FILES

array ILIAS\App\tests\RootFolderTest::$ALLOWED_ROOT_FOLDER_FILES = []
protected

Definition at line 75 of file RootFolderTest.php.

◆ ALLOWED_ROOT_FOLDER_DIRS

const array ILIAS\App\tests\RootFolderTest::ALLOWED_ROOT_FOLDER_DIRS
private
Initial value:
= [
'.git',
'.github',
'.idea',
'artifacts',
'cli',
'components',
'docs',
'extern',
'lang',
'node_modules',
'public',
'scripts',
'templates',
'vendor',
'.settings'
]

Definition at line 56 of file RootFolderTest.php.

◆ ALLOWED_ROOT_FOLDER_FILES

const array ILIAS\App\tests\RootFolderTest::ALLOWED_ROOT_FOLDER_FILES
private
Initial value:
= [
'.babelrc.json',
'.eslintrc.json',
'.gitignore',
'.htaccess',
'.mocharc.json',
'.phpunit.result.cache',
'captainhook.local.json',
'phpstan.local.neon',
'phpstan-baseline.neon',
'.php_cs.cache',
'.php-cs-fixer.cache',
'captainhook.json',
'composer.json',
'composer_new.json',
'composer.lock',
'ilias.ini.php',
'ilias_version.php',
'LICENSE',
'package-lock.json',
'package.json',
'package_new.json',
'README.md',
'unzip_test_file.zip',
'.DS_Store',
'.buildpath',
'.project'
]

Definition at line 27 of file RootFolderTest.php.


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