PHP 클래스 Contao\CoreBundle\Test\Command\UserPasswordCommandTest

파일 보기 프로젝트 열기: contao/core-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$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