PHP Class Neos\Media\Tests\Functional\AbstractTest

Inheritance: extends Neos\Flow\Tests\FunctionalTestCase
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$temporaryDirectory string

Méthodes publiques

Méthode Description
tearDown ( )

Méthodes protégées

Méthode 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 méthode

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

getMockResourceByImagePath() protected méthode

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
Résultat Neos\Flow\ResourceManagement\PersistentResource

prepareResourceManager() protected méthode

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

prepareTemporaryDirectory() protected méthode

Builds a temporary directory to work on.
protected prepareTemporaryDirectory ( ) : void
Résultat void

tearDown() public méthode

public tearDown ( )

Property Details

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Résultat Neos\Flow\ResourceManagement\ResourceManager

$temporaryDirectory protected_oe property

protected string $temporaryDirectory
Résultat string