Drupal 8  8.0.2
DeleteTest Class Reference
Inheritance diagram for DeleteTest:

Public Member Functions

 testUnused ()
 
 testInUse ()
 
- 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 the file delete function.

file

Member Function Documentation

testInUse ( )

Tries deleting a file that is in use.

References FileManagedUnitTestBase\assertFileHooksCalled(), Drupal\config(), FileManagedUnitTestBase\createFile(), db_update(), Entity\load(), and Drupal\service().

Here is the call graph for this function:

testUnused ( )

Tries deleting a normal file (as opposed to a directory, symlink, etc).

References FileManagedUnitTestBase\assertFileHooksCalled(), FileManagedUnitTestBase\createFile(), and Entity\load().

Here is the call graph for this function:


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