Drupal 8  8.0.2
LoadTest Class Reference
Inheritance diagram for LoadTest:

Public Member Functions

 testLoadMissingFid ()
 
 testLoadMissingFilepath ()
 
 testLoadInvalidStatus ()
 
 testSingleValues ()
 
 testMultiple ()
 
 testUuidValues ()
 
- 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 ::load().

file

Member Function Documentation

testLoadInvalidStatus ( )

Try to load a non-existent file by status.

References FileManagedUnitTestBase\assertFileHooksCalled().

Here is the call graph for this function:

testLoadMissingFid ( )

Try to load a non-existent file by fid.

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

Here is the call graph for this function:

testLoadMissingFilepath ( )

Try to load a non-existent file by URI.

References FileManagedUnitTestBase\assertFileHooksCalled().

Here is the call graph for this function:

testMultiple ( )

This will test loading file data from the database.

References FileManagedUnitTestBase\assertFileHookCalled(), FileManagedUnitTestBase\assertFileHooksCalled(), FileManagedUnitTestBase\createFile(), and Entity\loadMultiple().

Here is the call graph for this function:

testSingleValues ( )

Load a single file and ensure that the correct values are returned.

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

Here is the call graph for this function:

testUuidValues ( )

Loads a single file and ensure that the correct values are returned.

References FileManagedUnitTestBase\assertFileHookCalled(), FileManagedUnitTestBase\createFile(), and Drupal\entityManager().

Here is the call graph for this function:


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