PHP Class Contao\CoreBundle\Test\Image\ImageSizesTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

Méthode Description
setUp ( )
testGetAllOptionsWithImageSizes ( ) Tests getting all options with image sizes.
testGetAllOptionsWithoutImageSizes ( ) Tests getting all options without image sizes.
testGetOptionsForAdminUser ( ) Tests getting the options for an admin user.
testGetOptionsForRegularUser ( ) Tests getting all options for a regular user.
testInstantiation ( ) Tests the object instantiation.

Private Methods

Méthode Description
expectEvent ( string $event ) Adds an expected method call to the event dispatcher mock object.
expectExampleImageSizes ( ) Adds expected example image sizes to the database connection mock object.
expectImageSizes ( array $imageSizes ) Adds an expected method call to the database connection mock object.

Method Details

setUp() public méthode

public setUp ( )

testGetAllOptionsWithImageSizes() public méthode

Tests getting all options with image sizes.

testGetAllOptionsWithoutImageSizes() public méthode

Tests getting all options without image sizes.

testGetOptionsForAdminUser() public méthode

Tests getting the options for an admin user.

testGetOptionsForRegularUser() public méthode

Tests getting all options for a regular user.

testInstantiation() public méthode

Tests the object instantiation.
public testInstantiation ( )