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


PHP TestCase::prepareForTests方法代码示例

本文整理汇总了PHP中TestCase::prepareForTests方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::prepareForTests方法的具体用法?PHP TestCase::prepareForTests怎么用?PHP TestCase::prepareForTests使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TestCase的用法示例。


在下文中一共展示了TestCase::prepareForTests方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: prepareForTests

 protected function prepareForTests()
 {
     parent::prepareForTests();
     //Route::enableFilters();
     $this->current_realm = Config::get('app.url');
     $parts = parse_url($this->current_realm);
     $this->current_host = $parts['host'];
 }
开发者ID:smarcet,项目名称:openstackid,代码行数:8,代码来源:ApiTest.php

示例2: prepareForTests

 protected function prepareForTests()
 {
     if (Schema::hasTable('banned_ips')) {
         DB::table('banned_ips')->delete();
     }
     if (Schema::hasTable('user_exceptions_trail')) {
         DB::table('user_exceptions_trail')->delete();
     }
     if (Schema::hasTable('server_configuration')) {
         DB::table('server_configuration')->delete();
     }
     if (Schema::hasTable('server_extensions')) {
         DB::table('server_extensions')->delete();
     }
     if (Schema::hasTable('oauth2_client_api_scope')) {
         DB::table('oauth2_client_api_scope')->delete();
     }
     if (Schema::hasTable('oauth2_client_authorized_uri')) {
         DB::table('oauth2_client_authorized_uri')->delete();
     }
     if (Schema::hasTable('oauth2_access_token')) {
         DB::table('oauth2_access_token')->delete();
     }
     if (Schema::hasTable('oauth2_refresh_token')) {
         DB::table('oauth2_refresh_token')->delete();
     }
     if (Schema::hasTable('oauth2_client')) {
         DB::table('oauth2_client')->delete();
     }
     if (Schema::hasTable('openid_trusted_sites')) {
         DB::table('openid_trusted_sites')->delete();
     }
     if (Schema::hasTable('openid_associations')) {
         DB::table('openid_associations')->delete();
     }
     if (Schema::hasTable('openid_users')) {
         DB::table('openid_users')->delete();
     }
     if (Schema::hasTable('oauth2_api_endpoint_api_scope')) {
         DB::table('oauth2_api_endpoint_api_scope')->delete();
     }
     if (Schema::hasTable('oauth2_api_endpoint')) {
         DB::table('oauth2_api_endpoint')->delete();
     }
     if (Schema::hasTable('oauth2_api_scope')) {
         DB::table('oauth2_api_scope')->delete();
     }
     if (Schema::hasTable('oauth2_api')) {
         DB::table('oauth2_api')->delete();
     }
     if (Schema::hasTable('oauth2_resource_server')) {
         DB::table('oauth2_resource_server')->delete();
     }
     parent::prepareForTests();
 }
开发者ID:smarcet,项目名称:openstackid,代码行数:55,代码来源:OpenStackIDBaseTest.php

示例3: prepareForTests

 protected function prepareForTests()
 {
     parent::prepareForTests();
 }
开发者ID:smarcet,项目名称:openstackid,代码行数:4,代码来源:TrustedSitesServiceTest.php

示例4: prepareForTests

 protected function prepareForTests()
 {
     parent::prepareForTests();
     //Route::enableFilters();
     $this->current_realm = Config::get('app.url');
 }
开发者ID:smarcet,项目名称:openstackid,代码行数:6,代码来源:ApiScopeTest.php


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