Drupal 8  8.0.2
ApcuBackendUnitTest Class Reference
Inheritance diagram for ApcuBackendUnitTest:

Public Member Functions

 testSetGet ()
 
 testDelete ()
 
 testValueTypeIsKept ()
 
 testGetMultiple ()
 
 testSetMultiple ()
 
 testDeleteMultiple ()
 
 testDeleteAll ()
 
 testInvalidate ()
 
 testInvalidateTags ()
 
 testInvalidateAll ()
 
 testRemoveBin ()
 
- Public Member Functions inherited from GenericCacheBackendUnitTestBase
 setUpCacheBackend ()
 
 tearDownCacheBackend ()
 
 testSetGet ()
 
 testDelete ()
 
 testValueTypeIsKept ()
 
 testGetMultiple ()
 
 testSetMultiple ()
 
 testDeleteMultiple ()
 
 testDeleteAll ()
 
 testInvalidate ()
 
 testInvalidateTags ()
 
 testInvalidateAll ()
 
 testRemoveBin ()
 

Protected Member Functions

 getRequirements ()
 
 requirementsFail ()
 
 createCacheBackend ($bin)
 
 tearDown ()
 
- Protected Member Functions inherited from GenericCacheBackendUnitTestBase
 getTestBin ()
 
 createCacheBackend ($bin)
 
 getCacheBackend ($bin=null)
 
 setUp ()
 
 tearDown ()
 

Additional Inherited Members

- Protected Attributes inherited from GenericCacheBackendUnitTestBase
 $cachebackends
 
 $testBin
 
 $defaultValue
 

Detailed Description

Tests the APCu cache backend.

Cache extension apc

Member Function Documentation

createCacheBackend (   $bin)
protected

{}

References Drupal\service().

Here is the call graph for this function:

getRequirements ( )
protected

Get a list of failed requirements.

This specifically bypasses checkRequirements because it fails tests. PHP 7 does not have APCu and simpletest does not have a explicit "skip" functionality so to emulate it we override all test methods and explicitly pass when requirements are not met.

Returns
array

Referenced by ApcuBackendUnitTest\requirementsFail().

Here is the caller graph for this function:

requirementsFail ( )
protected

Check if requirements fail.

If the requirements fail the test method should return immediately instead of running any tests. Messages will be output to display why the test was skipped.

References ApcuBackendUnitTest\getRequirements().

Referenced by ApcuBackendUnitTest\testDelete(), ApcuBackendUnitTest\testDeleteAll(), ApcuBackendUnitTest\testDeleteMultiple(), ApcuBackendUnitTest\testGetMultiple(), ApcuBackendUnitTest\testInvalidate(), ApcuBackendUnitTest\testInvalidateAll(), ApcuBackendUnitTest\testInvalidateTags(), ApcuBackendUnitTest\testRemoveBin(), ApcuBackendUnitTest\testSetGet(), ApcuBackendUnitTest\testSetMultiple(), and ApcuBackendUnitTest\testValueTypeIsKept().

Here is the call graph for this function:

Here is the caller graph for this function:

tearDown ( )
protected

{}

testDelete ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testDeleteAll ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testDeleteMultiple ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testGetMultiple ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testInvalidate ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testInvalidateAll ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testInvalidateTags ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testRemoveBin ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testSetGet ( )

{}

References GenericCacheBackendUnitTestBase\getCacheBackend(), GenericCacheBackendUnitTestBase\getTestBin(), and ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testSetMultiple ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:

testValueTypeIsKept ( )

{}

References ApcuBackendUnitTest\requirementsFail().

Here is the call graph for this function:


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