ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilServicesFileSystemTest Class Reference
+ Inheritance diagram for ilServicesFileSystemTest:
+ Collaboration diagram for ilServicesFileSystemTest:

Public Member Functions

 testTrailingSlashes ()
 
 testBaseDirectory ()
 

Private Attributes

ILIAS DI Container $dic_backup
 

Detailed Description

Definition at line 21 of file ilServicesFileSystemTest.php.

Member Function Documentation

◆ testBaseDirectory()

ilServicesFileSystemTest::testBaseDirectory ( )

Definition at line 32 of file ilServicesFileSystemTest.php.

References CLIENT_DATA_DIR.

32  : void
33  {
34  if (!defined('CLIENT_DATA_DIR')) {
35  define('CLIENT_DATA_DIR', '/var/iliasdata');
36  }
37  $file_data = new ilFileData();
38  $this->assertEquals(CLIENT_DATA_DIR, $file_data->getPath());
39  }
const CLIENT_DATA_DIR
Definition: constants.php:46

◆ testTrailingSlashes()

ilServicesFileSystemTest::testTrailingSlashes ( )

Definition at line 25 of file ilServicesFileSystemTest.php.

25  : void
26  {
27  $file_data = new ilFileData();
28  $this->assertEquals('/var/www/ilias', $file_data->deleteTrailingSlash('/var/www/ilias/'));
29  $this->assertEquals('\\var\\www\\ilias', $file_data->deleteTrailingSlash('\\var\\www\\ilias\\'));
30  }

Field Documentation

◆ $dic_backup

ILIAS DI Container ilServicesFileSystemTest::$dic_backup
private

Definition at line 23 of file ilServicesFileSystemTest.php.


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