Drupal 8  8.0.2
UsageTest Class Reference
Inheritance diagram for UsageTest:

Public Member Functions

 testGetUsage ()
 
 testAddUsage ()
 
 testRemoveUsage ()
 
 createTempFiles ()
 
 testTempFileCleanupDefault ()
 
 testTempFileNoCleanup ()
 
 testTempFileCustomCleanup ()
 
- Public Member Functions inherited from FileManagedUnitTestBase
 assertFileHooksCalled ($expected)
 
 assertFileHookCalled ($hook, $expected_count=1, $message=NULL)
 
 assertFileUnchanged (FileInterface $before, FileInterface $after)
 
 assertDifferentFile (FileInterface $file1, FileInterface $file2)
 
 assertSameFile (FileInterface $file1, FileInterface $file2)
 
 createFile ($filepath=NULL, $contents=NULL, $scheme=NULL)
 
 createUri ($filepath=NULL, $contents=NULL, $scheme=NULL)
 

Additional Inherited Members

- Static Public Attributes inherited from FileManagedUnitTestBase
static $modules = array('file_test', 'file', 'system', 'field', 'user')
 
- Protected Member Functions inherited from FileManagedUnitTestBase
 setUp ()
 

Detailed Description

Tests file usage functions.

file

Member Function Documentation

createTempFiles ( )

Create files for all the possible combinations of age and status.

We are using UPDATE statements because using the API would set the timestamp.

References Drupal\config(), and db_update().

Referenced by UsageTest\testTempFileCleanupDefault(), UsageTest\testTempFileCustomCleanup(), and UsageTest\testTempFileNoCleanup().

Here is the call graph for this function:

Here is the caller graph for this function:

testAddUsage ( )

Tests ::add().

References FileManagedUnitTestBase\createFile(), and db_select().

Here is the call graph for this function:

testGetUsage ( )

Tests ::listUsage().

References FileManagedUnitTestBase\createFile(), and db_insert().

Here is the call graph for this function:

testRemoveUsage ( )

Tests ::delete().

References FileManagedUnitTestBase\createFile(), db_insert(), and db_select().

Here is the call graph for this function:

testTempFileCleanupDefault ( )

Ensure that temporary files are removed by default.

References UsageTest\createTempFiles().

Here is the call graph for this function:

testTempFileCustomCleanup ( )

Ensure that temporary files are kept as configured.

References Drupal\config(), and UsageTest\createTempFiles().

Here is the call graph for this function:

testTempFileNoCleanup ( )

Ensure that temporary files are kept as configured.

References Drupal\config(), and UsageTest\createTempFiles().

Here is the call graph for this function:


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