ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 87 of file RootFolderTest.php.

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

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

◆ setUp()

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

Definition at line 75 of file RootFolderTest.php.

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

Field Documentation

◆ $ALLOWED_ROOT_FOLDER_DIRS

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

Definition at line 72 of file RootFolderTest.php.

◆ $ALLOWED_ROOT_FOLDER_FILES

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

Definition at line 73 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 54 of file RootFolderTest.php.

◆ ALLOWED_ROOT_FOLDER_FILES

const array ILIAS\App\tests\RootFolderTest::ALLOWED_ROOT_FOLDER_FILES
private
Initial value:
= [
'.eslintrc.json',
'.gitignore',
'.htaccess',
'.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: