当前位置: 首页>>代码示例>>PHP>>正文


PHP ApiTestCase::__construct方法代码示例

本文整理汇总了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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:WishlistTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:FollowTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:WineryTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:RegisterUserTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:RankingTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:UpdateRatingTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:LikeTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:CreateRatingTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:WineTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:CommentTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:UserTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:WinenoteTest.php

示例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');
 }
开发者ID:anht37,项目名称:winelover_server,代码行数:8,代码来源:LogoutTest.php

示例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']));
 }
开发者ID:paladox,项目名称:mediawiki,代码行数:5,代码来源:ApiQueryWatchlistIntegrationTest.php


注:本文中的ApiTestCase::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。