PHP Класс Contao\CoreBundle\Test\Command\UserPasswordCommandTest

Наследование: extends Contao\CoreBundle\Test\TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$command Contao\CoreBundle\Command\UserPasswordCommand
$container Symfony\Component\DependencyInjection\ContainerInterface

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
mockEncryptionAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject Mocks an encryption adapter.

Описание методов

mockEncryptionAdapter() защищенный Метод

Mocks an encryption adapter.
protected mockEncryptionAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject
Результат Contao\CoreBundle\Framework\Adapter | PHPUnit_Framework_MockObject_MockObject

setUp() публичный Метод

public setUp ( )

testConfiguration() публичный Метод

Tests the command configuration.
public testConfiguration ( )

testCustomPasswordLength() публичный Метод

Tests a custom minimum password length.

testDatabaseUpdate() публичный Метод

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

testDatabaseUserNotFound() публичный Метод

Tests an invalid username.

testExceptionWhenMissingUsername() публичный Метод

Tests the command without a username.

testExitCodeWithoutPassword() публичный Метод

Tests the command without a password.

testInstantiation() публичный Метод

Tests the object instantiation.
public testInstantiation ( )

testMinimumPasswordLength() публичный Метод

Tests the minimum password length.

usernamePasswordProvider() публичный Метод

Provides username and password data.
public usernamePasswordProvider ( ) : array
Результат array

Описание свойств

$command защищенное свойство

protected UserPasswordCommand,Contao\CoreBundle\Command $command
Результат Contao\CoreBundle\Command\UserPasswordCommand

$container защищенное свойство

protected ContainerInterface,Symfony\Component\DependencyInjection $container
Результат Symfony\Component\DependencyInjection\ContainerInterface