Method | Description | |
---|---|---|
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 = [] ) : |
Returns a ContaoFramework instance. |
Method | Description | |
---|---|---|
addImageServicesToContainer ( Symfony\Component\DependencyInjection\Container $container, string $rootDir = null ) | Adds image services to the container. | |
mockConfigAdapter ( integer | null $minPasswordLength = null ) : |
Mocks a config adapter. | |
mockContainerWithContaoScopes ( string | null $scope = null ) : PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\Container | Mocks a container with scopes. | |
mockFilesModelAdapter ( ) : |
Mocks a files model adapter. | |
mockKernel ( ) : |
Mocks a Contao kernel. | |
mockRequestTokenAdapter ( ) : |
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. |
protected addImageServicesToContainer ( Symfony\Component\DependencyInjection\Container $container, string $rootDir = null ) | ||
$container | Symfony\Component\DependencyInjection\Container | |
$rootDir | string |
public getCacheDir ( ) : string | ||
return | string |
public getRootDir ( ) : string | ||
return | string |
protected mockConfigAdapter ( integer | null $minPasswordLength = null ) : |
||
$minPasswordLength | integer | null | |
return |
protected mockContainerWithContaoScopes ( string | null $scope = null ) : PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\Container | ||
$scope | string | null | |
return | PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\Container |
public mockContaoFramework ( Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\Routing\RouterInterface $router = null, array $adapters = [], array $instances = [] ) : |
||
$requestStack | Symfony\Component\HttpFoundation\RequestStack | |
$router | Symfony\Component\Routing\RouterInterface | |
$adapters | array | |
$instances | array | |
return | The object instance |
protected mockFilesModelAdapter ( ) : |
||
return |
protected mockKernel ( ) : |
||
return |
protected mockRequestTokenAdapter ( ) : |
||
return |
protected mockRouter ( string $url ) : Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject | ||
$url | string | |
return | Symfony\Component\Routing\RouterInterface | PHPUnit_Framework_MockObject_MockObject |
protected mockSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface | ||
return | Symfony\Component\HttpFoundation\Session\SessionInterface |
protected mockTokenManager ( ) : Symfony\Component\Security\Csrf\CsrfTokenManagerInterface | PHPUnit_Framework_MockObject_MockObject | ||
return | Symfony\Component\Security\Csrf\CsrfTokenManagerInterface | PHPUnit_Framework_MockObject_MockObject |