PHP Class Contao\CoreBundle\Test\Command\UserPasswordCommandTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Protected Properties

Property Type Description
$command Contao\CoreBundle\Command\UserPasswordCommand
$container Symfony\Component\DependencyInjection\ContainerInterface

Public Methods

Method 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.

Protected Methods

Method Description
mockEncryptionAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject Mocks an encryption adapter.

Method Details

mockEncryptionAdapter() protected method

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

setUp() public method

public setUp ( )

testConfiguration() public method

Tests the command configuration.
public testConfiguration ( )

testCustomPasswordLength() public method

Tests a custom minimum password length.

testDatabaseUpdate() public method

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

testDatabaseUserNotFound() public method

Tests an invalid username.

testExceptionWhenMissingUsername() public method

Tests the command without a username.

testExitCodeWithoutPassword() public method

Tests the command without a password.

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testMinimumPasswordLength() public method

Tests the minimum password length.

usernamePasswordProvider() public method

Provides username and password data.
public usernamePasswordProvider ( ) : array
return array

Property Details

$command protected_oe property

protected UserPasswordCommand,Contao\CoreBundle\Command $command
return Contao\CoreBundle\Command\UserPasswordCommand

$container protected_oe property

protected ContainerInterface,Symfony\Component\DependencyInjection $container
return Symfony\Component\DependencyInjection\ContainerInterface