PHP Class Elgg\EntityIconServiceTest

Inheritance: extends TestCase
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Méthode Description
getCoverSizes ( )
getIconSizesForSubtype ( $hook, $type, $sizes, $params )
getTestSizes ( )
iconDimensionsProvider ( )
setUp ( )
tearDown ( )
testCanCleanUpOnFailure ( )
testCanDeleteIcon ( )
testCanDeleteIconsWithAHookHandler ( )
testCanFilterIconSizesForEntityTypeSubtypePair ( )
testCanHandleServeIconRequest ( )
testCanListenToIconsSavedHook ( )
testCanPrepareInputFile ( )
testCanReplaceDefaultIconURL ( )
testCanReplaceIconFile ( )
testCanResolveDefaultIconURL ( )
testCanSaveIconFromElggFile ( )
testCanSaveIconFromLocalFile ( )
testCanSaveIconFromUploadedFile ( )
testCanSaveIconWithCroppingCoordinates ( )
testCanSaveIconsWithAHookHandler ( )
testCanSetSizesForCustomIconType ( )
testEmptySizeConfigSavesUnmodifiedVersion ( )
testGetDefaultIconFile ( )
testGetDefaultSizes ( )
testHasNoDefaultIcon ( )
testIconDimensionsAfterResize ( $sw, $sh, $size, $ew, $eh, $crop, $cw = null, $ch = null )
testIconLastChangedTime ( )
testIconURLInvalidatedOnAccessIdChange ( )
testServeIconSends400ForMalformattedRequest ( )
testServeIconSends404ForNonExistentGuid ( )
testThrowsExceptionIfLocalFileIsNotReadable ( )
testThrowsExceptionOnElggIconSave ( )
testThrowsExceptionOnInvalidHookHandlerReturnForIconFile ( )
testThrowsExceptionOnSaveIconFromNonExistentElggFile ( )

Méthodes protégées

Méthode Description
createService ( )

Method Details

createService() protected méthode

protected createService ( )

getCoverSizes() public static méthode

public static getCoverSizes ( )

getIconSizesForSubtype() public static méthode

public static getIconSizesForSubtype ( $hook, $type, $sizes, $params )

getTestSizes() public static méthode

public static getTestSizes ( )

iconDimensionsProvider() public méthode

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testCanCleanUpOnFailure() public méthode

testCanDeleteIcon() public méthode

public testCanDeleteIcon ( )

testCanDeleteIconsWithAHookHandler() public méthode

testCanFilterIconSizesForEntityTypeSubtypePair() public méthode

testCanHandleServeIconRequest() public méthode

testCanListenToIconsSavedHook() public méthode

testCanPrepareInputFile() public méthode

testCanReplaceDefaultIconURL() public méthode

testCanReplaceIconFile() public méthode

testCanResolveDefaultIconURL() public méthode

testCanSaveIconFromElggFile() public méthode

testCanSaveIconFromLocalFile() public méthode

testCanSaveIconFromUploadedFile() public méthode

testCanSaveIconWithCroppingCoordinates() public méthode

testCanSaveIconsWithAHookHandler() public méthode

testCanSetSizesForCustomIconType() public méthode

testEmptySizeConfigSavesUnmodifiedVersion() public méthode

testGetDefaultIconFile() public méthode

testGetDefaultSizes() public méthode

public testGetDefaultSizes ( )

testHasNoDefaultIcon() public méthode

testIconDimensionsAfterResize() public méthode

public testIconDimensionsAfterResize ( $sw, $sh, $size, $ew, $eh, $crop, $cw = null, $ch = null )

testIconLastChangedTime() public méthode

testIconURLInvalidatedOnAccessIdChange() public méthode

testServeIconSends400ForMalformattedRequest() public méthode

testServeIconSends404ForNonExistentGuid() public méthode

testThrowsExceptionIfLocalFileIsNotReadable() public méthode

testThrowsExceptionOnElggIconSave() public méthode

testThrowsExceptionOnInvalidHookHandlerReturnForIconFile() public méthode

testThrowsExceptionOnSaveIconFromNonExistentElggFile() public méthode