PHP Class BaserTestCase

Inheritance: extends CakeTestCase
显示文件 Open project: baserproject/basercms Class Usage Examples

Public Methods

Method Description
__construct ( $name = null, array $data = [], $dataName = '' ) {@inheritDoc}

Protected Methods

Method Description
_getRequest ( string $url ) : CakeRequest 指定されたURLに対応しRouterパース済のCakeRequestのインスタンスを返す
_loginAdmin ( $id = 1 ) 管理画面にログインする

Method Details

__construct() public method

{@inheritDoc}
public __construct ( $name = null, array $data = [], $dataName = '' )
$data array

_getRequest() protected method

指定されたURLに対応しRouterパース済のCakeRequestのインスタンスを返す
protected _getRequest ( string $url ) : CakeRequest
$url string URL
return CakeRequest

_loginAdmin() protected method

管理画面にログインする
protected _loginAdmin ( $id = 1 )