PHP Class Sulu\Bundle\MediaBundle\Behat\MediaContext

Inheritance: extends Sulu\Bundle\TestBundle\Behat\BaseContext, implements Behat\Behat\Context\SnippetAcceptingContext
Show file Open project: sulu/sulu

Public Methods

Method Description
iAmEditingTheMediaCollection ( $name = null )
iAttachTheFileToTheCurrentDropZone ( $path )
iShouldSeeItems ( $count )
iWaitForAThumbnailToAppear ( )
iWaitForAnItemToAppear ( )
theFileHasBeenUploaded ( $name, $collectionName )
theMediaCollectionExists ( $name )
theMediaCollectionShouldExist ( $name )
theMediaCollectionShouldNotExist ( $name )

Private Methods

Method Description
getLastMediaCollection ( ) : Collection Return the last media collection that was created in this context.
getMediaManager ( ) : Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface Return the media manager.
getOrCreateCollectionType ( string $name ) : CollectionType Get or create a collection type.
getOrCreateMediaCollection ( string $name ) : Collection Get or create a media collection.
getOrCreateMediaType ( string $name ) : MediaType Get or create a media type.

Method Details

iAmEditingTheMediaCollection() public method

public iAmEditingTheMediaCollection ( $name = null )

iAttachTheFileToTheCurrentDropZone() public method

iShouldSeeItems() public method

public iShouldSeeItems ( $count )

iWaitForAThumbnailToAppear() public method

iWaitForAnItemToAppear() public method

theFileHasBeenUploaded() public method

public theFileHasBeenUploaded ( $name, $collectionName )

theMediaCollectionExists() public method

public theMediaCollectionExists ( $name )

theMediaCollectionShouldExist() public method

theMediaCollectionShouldNotExist() public method