PHP Class Neos\Media\Tests\Functional\AbstractTest

Inheritance: extends Neos\Flow\Tests\FunctionalTestCase
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$temporaryDirectory string

Public Methods

Method Description
tearDown ( )

Protected Methods

Method Description
createMockResourceAndPointerFromHash ( string $hash ) : PersistentResource Creates a mock ResourcePointer and PersistentResource from a given hash.
getMockResourceByImagePath ( string $imagePathAndFilename ) : PersistentResource Creates an Image object from a file using a mock resource (in order to avoid a database resource pointer entry)
prepareResourceManager ( ) : void Initializes the resource manager and modifies the persistent resource storage location.
prepareTemporaryDirectory ( ) : void Builds a temporary directory to work on.

Method Details

createMockResourceAndPointerFromHash() protected method

Make sure that a file representation already exists, e.g. with file_put_content('resource://' . $hash) before
protected createMockResourceAndPointerFromHash ( string $hash ) : PersistentResource
$hash string
return Neos\Flow\ResourceManagement\PersistentResource

getMockResourceByImagePath() protected method

Creates an Image object from a file using a mock resource (in order to avoid a database resource pointer entry)
protected getMockResourceByImagePath ( string $imagePathAndFilename ) : PersistentResource
$imagePathAndFilename string
return Neos\Flow\ResourceManagement\PersistentResource

prepareResourceManager() protected method

Initializes the resource manager and modifies the persistent resource storage location.
protected prepareResourceManager ( ) : void
return void

prepareTemporaryDirectory() protected method

Builds a temporary directory to work on.
protected prepareTemporaryDirectory ( ) : void
return void

tearDown() public method

public tearDown ( )

Property Details

$resourceManager protected property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
return Neos\Flow\ResourceManagement\ResourceManager

$temporaryDirectory protected property

protected string $temporaryDirectory
return string