PHP Class Contao\CoreBundle\Test\Command\UserPasswordCommandTest

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

Protected Properties

Свойство Type Description
$command Contao\CoreBundle\Command\UserPasswordCommand
$container Symfony\Component\DependencyInjection\ContainerInterface

Méthodes publiques

Méthode Description
setUp ( )
testConfiguration ( ) Tests the command configuration.
testCustomPasswordLength ( ) Tests a custom minimum password length.
testDatabaseUpdate ( string $username, string $password ) Tests the database update.
testDatabaseUserNotFound ( ) Tests an invalid username.
testExceptionWhenMissingUsername ( ) Tests the command without a username.
testExitCodeWithoutPassword ( ) Tests the command without a password.
testInstantiation ( ) Tests the object instantiation.
testMinimumPasswordLength ( ) Tests the minimum password length.
usernamePasswordProvider ( ) : array Provides username and password data.

Méthodes protégées

Méthode Description
mockEncryptionAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject Mocks an encryption adapter.

Method Details

mockEncryptionAdapter() protected méthode

Mocks an encryption adapter.
protected mockEncryptionAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject
Résultat Contao\CoreBundle\Framework\Adapter | PHPUnit_Framework_MockObject_MockObject

setUp() public méthode

public setUp ( )

testConfiguration() public méthode

Tests the command configuration.
public testConfiguration ( )

testCustomPasswordLength() public méthode

Tests a custom minimum password length.

testDatabaseUpdate() public méthode

Tests the database update.
public testDatabaseUpdate ( string $username, string $password )
$username string
$password string

testDatabaseUserNotFound() public méthode

Tests an invalid username.

testExceptionWhenMissingUsername() public méthode

Tests the command without a username.

testExitCodeWithoutPassword() public méthode

Tests the command without a password.

testInstantiation() public méthode

Tests the object instantiation.
public testInstantiation ( )

testMinimumPasswordLength() public méthode

Tests the minimum password length.

usernamePasswordProvider() public méthode

Provides username and password data.
public usernamePasswordProvider ( ) : array
Résultat array

Property Details

$command protected_oe property

protected UserPasswordCommand,Contao\CoreBundle\Command $command
Résultat Contao\CoreBundle\Command\UserPasswordCommand

$container protected_oe property

protected ContainerInterface,Symfony\Component\DependencyInjection $container
Résultat Symfony\Component\DependencyInjection\ContainerInterface