PHP 클래스 Contao\CoreBundle\Test\TestCase

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
getCacheDir ( ) : string Returns the path to the fixtures cache directory.
getRootDir ( ) : string Returns the path to the fixtures directory.
mockContaoFramework ( Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\Routing\RouterInterface $router = null, array $adapters = [], array $instances = [] ) : ContaoFramework Returns a ContaoFramework instance.

보호된 메소드들

메소드 설명
addImageServicesToContainer ( Symfony\Component\DependencyInjection\Container $container, string $rootDir = null ) Adds image services to the container.
mockConfigAdapter ( integer | null $minPasswordLength = null ) : Adapter | PHPUnit_Framework_MockObject_MockObject Mocks a config adapter.
mockContainerWithContaoScopes ( string | null $scope = null ) : PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\Container Mocks a container with scopes.
mockFilesModelAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject Mocks a files model adapter.
mockKernel ( ) : Kernel | PHPUnit_Framework_MockObject_MockObject Mocks a Contao kernel.
mockRequestTokenAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject Mocks a request token adapter.
mockRouter ( string $url ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject Mocks a router returning the given URL.
mockSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface Mocks a Symfony session containing the Contao attribute bags.
mockTokenManager ( ) : Symfony\Component\Security\Csrf\CsrfTokenManagerInterface | PHPUnit_Framework_MockObject_MockObject Mocks a CSRF token manager.

메소드 상세

addImageServicesToContainer() 보호된 메소드

Adds image services to the container.
protected addImageServicesToContainer ( Symfony\Component\DependencyInjection\Container $container, string $rootDir = null )
$container Symfony\Component\DependencyInjection\Container
$rootDir string

getCacheDir() 공개 메소드

Returns the path to the fixtures cache directory.
public getCacheDir ( ) : string
리턴 string

getRootDir() 공개 메소드

Returns the path to the fixtures directory.
public getRootDir ( ) : string
리턴 string

mockConfigAdapter() 보호된 메소드

Mocks a config adapter.
protected mockConfigAdapter ( integer | null $minPasswordLength = null ) : Adapter | PHPUnit_Framework_MockObject_MockObject
$minPasswordLength integer | null
리턴 Contao\CoreBundle\Framework\Adapter | PHPUnit_Framework_MockObject_MockObject

mockContainerWithContaoScopes() 보호된 메소드

Mocks a container with scopes.
protected mockContainerWithContaoScopes ( string | null $scope = null ) : PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\Container
$scope string | null
리턴 PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\Container

mockContaoFramework() 공개 메소드

Returns a ContaoFramework instance.
public mockContaoFramework ( Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\Routing\RouterInterface $router = null, array $adapters = [], array $instances = [] ) : ContaoFramework
$requestStack Symfony\Component\HttpFoundation\RequestStack
$router Symfony\Component\Routing\RouterInterface
$adapters array
$instances array
리턴 Contao\CoreBundle\Framework\ContaoFramework The object instance

mockFilesModelAdapter() 보호된 메소드

Mocks a files model adapter.
protected mockFilesModelAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject
리턴 Contao\CoreBundle\Framework\Adapter | PHPUnit_Framework_MockObject_MockObject

mockKernel() 보호된 메소드

Mocks a Contao kernel.
protected mockKernel ( ) : Kernel | PHPUnit_Framework_MockObject_MockObject
리턴 Symfony\Component\HttpKernel\Kernel | PHPUnit_Framework_MockObject_MockObject

mockRequestTokenAdapter() 보호된 메소드

Mocks a request token adapter.
protected mockRequestTokenAdapter ( ) : Adapter | PHPUnit_Framework_MockObject_MockObject
리턴 Contao\CoreBundle\Framework\Adapter | PHPUnit_Framework_MockObject_MockObject

mockRouter() 보호된 메소드

Mocks a router returning the given URL.
protected mockRouter ( string $url ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject
$url string
리턴 Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject

mockSession() 보호된 메소드

Mocks a Symfony session containing the Contao attribute bags.
protected mockSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface
리턴 Symfony\Component\HttpFoundation\Session\SessionInterface

mockTokenManager() 보호된 메소드

Mocks a CSRF token manager.
protected mockTokenManager ( ) : Symfony\Component\Security\Csrf\CsrfTokenManagerInterface | PHPUnit_Framework_MockObject_MockObject
리턴 Symfony\Component\Security\Csrf\CsrfTokenManagerInterface | PHPUnit_Framework_MockObject_MockObject