Drupal 8  8.0.2
ImageStyleTest Class Reference
Inheritance diagram for ImageStyleTest:

Public Member Functions

 testGetDerivativeExtension ()
 
 testBuildUri ()
 
 testGetPathToken ()
 
 fileUriScheme ($uri)
 
 fileUriTarget ($uri)
 
 fileDefaultScheme ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 getImageStyleMock ($image_effect_id, $image_effect, $stubs=array())
 
 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

 $entityType
 
 $entityManager
 
 $entityTypeId
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Image

Member Function Documentation

fileDefaultScheme ( )

Mock function for ImageStyle::fileDefaultScheme().

fileUriScheme (   $uri)

Mock function for ImageStyle::fileUriScheme().

fileUriTarget (   $uri)

Mock function for ImageStyle::fileUriTarget().

getImageStyleMock (   $image_effect_id,
  $image_effect,
  $stubs = array() 
)
protected

Gets a mocked image style for testing.

Parameters
string$image_effect_idThe image effect ID.
\Drupal\image\ImageEffectInterface | \PHPUnit_Framework_MockObject_MockObject$image_effectThe image effect used for testing.
Returns
| The mocked image style.

Referenced by ImageStyleTest\testBuildUri(), ImageStyleTest\testGetDerivativeExtension(), and ImageStyleTest\testGetPathToken().

Here is the caller graph for this function:

setUp ( )
protected

{}

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

Here is the call graph for this function:

testBuildUri ( )

::buildUri

References ImageStyleTest\getImageStyleMock(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testGetDerivativeExtension ( )

::getDerivativeExtension

References ImageStyleTest\getImageStyleMock(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testGetPathToken ( )

::getPathToken

References ImageStyleTest\getImageStyleMock(), Crypt\hmacBase64(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:


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