Drupal 8  8.0.2
PrivateKeyTest Class Reference
Inheritance diagram for PrivateKeyTest:

Public Member Functions

 testGet ()
 
 testGetNoState ()
 
 testSet ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- 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

 $state
 
 $privateKey
 
 $key
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Tests the PrivateKey class.

PrivateKeyTest

Member Function Documentation

setUp ( )
protected

{}

References Crypt\randomBytesBase64(), and Drupal\state().

Here is the call graph for this function:

testGet ( )

Tests PrivateKey::get().

References Drupal\state().

Here is the call graph for this function:

testGetNoState ( )

Tests PrivateKey::get() with no private key from state.

testSet ( )

Tests PrivateKey::setPrivateKey().

References UnitTestCase\randomMachineName(), and Drupal\state().

Here is the call graph for this function:


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