Drupal 8  8.0.2
FileSystemTest Class Reference
Inheritance diagram for FileSystemTest:

Public Member Functions

 testChmodFile ()
 
 testChmodDir ()
 
 testChmodUnsuccessful ()
 
 testUnlink ()
 
 testBasename ($uri, $expected, $suffix=NULL)
 
 providerTestBasename ()
 
 testUriScheme ($uri, $expected)
 
 providerTestUriScheme ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 assertFilePermissions ($expected_mode, $uri, $message= '')
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $fileSystem
 
 $logger
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

File

Member Function Documentation

assertFilePermissions (   $expected_mode,
  $uri,
  $message = '' 
)
protected

Asserts that the file permissions of a given URI matches.

Parameters
int$expected_mode
string$uri
string$message

Referenced by FileSystemTest\testChmodDir(), and FileSystemTest\testChmodFile().

Here is the caller graph for this function:

setUp ( )
protected

{}

References Drupal\logger().

Here is the call graph for this function:

testBasename (   $uri,
  $expected,
  $suffix = NULL 
)

::basename

providerTestBasename

testChmodDir ( )

::chmod

References FileSystemTest\assertFilePermissions(), and FileSystem\CHMOD_DIRECTORY.

Here is the call graph for this function:

testChmodFile ( )

::chmod

References FileSystemTest\assertFilePermissions(), and FileSystem\CHMOD_FILE.

Here is the call graph for this function:

testChmodUnsuccessful ( )

::chmod

References Drupal\logger().

Here is the call graph for this function:

testUnlink ( )

::unlink

testUriScheme (   $uri,
  $expected 
)

::uriScheme

providerTestUriScheme


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