本文整理汇总了PHP中ApiTestCase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiTestCase::__construct方法的具体用法?PHP ApiTestCase::__construct怎么用?PHP ApiTestCase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApiTestCase
的用法示例。
在下文中一共展示了ApiTestCase::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('id' => '2', 'user_id' => '', 'wine_unique_id' => '1_2009');
$this->_method = 'POST';
$this->_uri = 'api/wishlist';
$this->_models = array('Wishlist', 'User', 'Login');
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('id' => '2', 'user_id' => '', 'follow_id' => '');
$this->_method = 'POST';
$this->_uri = 'api/follow';
$this->_models = array('Follow', 'User', 'Login');
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('brand_name' => 'Sweet Lips', 'country_id' => '1', 'region' => 'Spain');
$this->_method = 'POST';
$this->_uri = 'api/winery';
$this->_models = array('Winery', 'User', 'Login');
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('email' => 'test@gmail.com', 'password' => '123456', 'device_id' => '123456');
$this->_method = 'POST';
$this->_uri = 'api/register';
$this->_models = array('User');
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('user_id' => '');
$this->_method = 'GET';
$this->_uri = 'api/ranking';
$this->_models = array('Follow', 'User', 'Login');
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('rate' => '0.5', 'comment_count' => '2', 'like_count' => '0', 'is_my_wine' => '0');
$this->_method = 'PUT';
$this->_uri = 'api/rating/';
$this->_models = array('Rating', 'User', 'Login');
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('id' => '2', 'user_id' => '', 'rating_id' => '1');
$this->_method = 'POST';
$this->_uri = 'api/like';
$this->_models = array('Like', 'User', 'Login');
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('user_id' => '', 'wine_unique_id' => '1_2009', 'rate' => '3.5', 'comment_count' => '3', 'like_count' => '2', 'is_my_wine' => '1');
$this->_method = 'POST';
$this->_uri = 'api/rating';
$this->_models = array('Rating', 'User', 'Login');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('wine_id' => '2', 'name' => 'Wine_2', 'year' => '2009', 'winery_id' => '1', 'wine_unique_id' => '', 'average_price' => '2', 'average_rate' => '1', 'text' => 'wi');
$this->_method = 'POST';
$this->_uri = 'api/wine';
$this->_models = array('Wine', 'User', 'Login');
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('id' => '2', 'user_id' => '', 'rating_id' => '1', 'content' => 'this is comment 2');
$this->_method = 'POST';
$this->_uri = 'api/comment/1';
$this->_models = array('Comment', 'User', 'Login');
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('user_id' => '', 'text' => 'us', 'input' => array('10202725915174596'));
$this->_method = 'POST';
$this->_uri = 'api/user/search';
$this->_models = array('Follow', 'User', 'Login');
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('user_id' => '', 'wine_unique_id' => '1_2009', 'note' => 'This is note test');
$this->_method = 'POST';
$this->_uri = 'api/winenote';
$this->_models = array('Winenote', 'User', 'Login');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->_params = array('session_id' => '');
$this->_method = 'POST';
$this->_uri = ApiResponse::$API_LIST['logout'];
$this->_models = array('User');
}
示例14: __construct
public function __construct($name = null, array $data = [], $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->tablesUsed = array_unique(array_merge($this->tablesUsed, ['watchlist', 'recentchanges', 'page']));
}