Method | 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'] |
return |
protected getMockCache ( null $path = null ) : |
||
$path | null | |
return |
protected getMockCsrfTokenManager ( array $methods = ['isTokenValid'] ) : Symfony\Component\Security\Csrf\CsrfTokenManager | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | |
return | 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 | |
return | Bolt\Logger\FlashLogger | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject |
protected getMockGuzzleClient ( ) : |
||
return |
protected getMockLoggerManager ( array $methods = ['clear', 'error', 'info', 'trim'] ) : |
||
$methods | array | |
return |
protected getMockLogin ( array $methods = ['login'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | Defaults to ['login'] |
return | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | A mocked \Bolt\AccessControl\Login |
protected getMockMonolog ( array $methods = ['alert', 'clear', 'debug', 'error', 'info'] ) : |
||
$methods | array | |
return |
protected getMockPermissions ( array $methods = ['isAllowed', 'isAllowedToManipulate'] ) : Bolt\AccessControl\Permissions | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | ||
$methods | array | |
return | Bolt\AccessControl\Permissions | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject |
protected getMockRender ( |
||
$app | ||
return |
protected getMockStorage ( array $methods = ['getContent', 'getContentType', 'getTaxonomyType'] ) : |
||
$methods | array | |
return |
protected getMockSwiftMailer ( array $methods = ['send'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer | ||
$methods | array | |
return | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer |
protected getMockUsers ( array $methods = ['getUsers', 'isAllowed'] ) : |
||
$methods | array | |
return |
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 |