Méthode | Description | |
---|---|---|
addDefaultUser ( |
||
addNewUser ( $app, $username, $displayname, $role, $enabled = true ) | ||
addSomeContent ( ) | ||
allowLogin ( $app ) | ||
checkTwigForTemplate ( |
||
getApp ( $boot = true ) | ||
getMockAccessChecker ( Silex\Application $app, array $methods = ['isValidSession'] ) : |
||
getMockCache ( null $path = null ) : |
||
getMockCsrfTokenManager ( array $methods = ['isTokenValid'] ) : Symfony\Component\Security\Csrf\CsrfTokenManager | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
getMockFlashLogger ( array $methods = ['danger', 'error', 'success'] ) : Bolt\Logger\FlashLogger | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
getMockGuzzleClient ( ) : |
||
getMockLoggerManager ( array $methods = ['clear', 'error', 'info', 'trim'] ) : |
||
getMockLogin ( array $methods = ['login'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
getMockMonolog ( array $methods = ['alert', 'clear', 'debug', 'error', 'info'] ) : |
||
getMockPermissions ( array $methods = ['isAllowed', 'isAllowedToManipulate'] ) : Bolt\AccessControl\Permissions | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
getMockRender ( |
||
getMockStorage ( array $methods = ['getContent', 'getContentType', 'getTaxonomyType'] ) : |
||
getMockSwiftMailer ( array $methods = ['send'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer | ||
getMockUsers ( array $methods = ['getUsers', 'isAllowed'] ) : |
||
getService ( $key ) | ||
getTwigHandlers ( $app ) | ||
makeApp ( ) | ||
removeCSRF ( $app ) | ||
resetConfig ( ) | ||
resetDb ( ) | ||
rmdir ( $dir ) | ||
setAppPaths ( |
||
setService ( string $key, mixed $value ) | ||
setSessionUser ( Bolt\Storage\Entity\Users $userEntity ) |
protected addDefaultUser ( |
||
$app |
protected addNewUser ( $app, $username, $displayname, $role, $enabled = true ) |
protected checkTwigForTemplate ( |
||
$app |
protected getMockAccessChecker ( Silex\Application $app, array $methods = ['isValidSession'] ) : |
||
$app | Silex\Application | |
$methods | array | Defaults to ['isValidSession'] |
Résultat |
protected getMockCache ( null $path = null ) : |
||
$path | null | |
Résultat |
protected getMockCsrfTokenManager ( array $methods = ['isTokenValid'] ) : Symfony\Component\Security\Csrf\CsrfTokenManager | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | |
Résultat | Symfony\Component\Security\Csrf\CsrfTokenManager | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject |
protected getMockFlashLogger ( array $methods = ['danger', 'error', 'success'] ) : Bolt\Logger\FlashLogger | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | |
Résultat | Bolt\Logger\FlashLogger | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject |
protected getMockGuzzleClient ( ) : |
||
Résultat |
protected getMockLoggerManager ( array $methods = ['clear', 'error', 'info', 'trim'] ) : |
||
$methods | array | |
Résultat |
protected getMockLogin ( array $methods = ['login'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | Defaults to ['login'] |
Résultat | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | A mocked \Bolt\AccessControl\Login |
protected getMockMonolog ( array $methods = ['alert', 'clear', 'debug', 'error', 'info'] ) : |
||
$methods | array | |
Résultat |
protected getMockPermissions ( array $methods = ['isAllowed', 'isAllowedToManipulate'] ) : Bolt\AccessControl\Permissions | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | |
Résultat | Bolt\AccessControl\Permissions | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject |
protected getMockRender ( |
||
$app | ||
Résultat |
protected getMockStorage ( array $methods = ['getContent', 'getContentType', 'getTaxonomyType'] ) : |
||
$methods | array | |
Résultat |
protected getMockSwiftMailer ( array $methods = ['send'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer | ||
$methods | array | |
Résultat | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer |
protected getMockUsers ( array $methods = ['getUsers', 'isAllowed'] ) : |
||
$methods | array | |
Résultat |
protected setAppPaths ( |
||
$config |
protected setService ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |
protected setSessionUser ( Bolt\Storage\Entity\Users $userEntity ) | ||
$userEntity | Bolt\Storage\Entity\Users |