本文整理汇总了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'];
}
示例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();
}
示例3: prepareForTests
protected function prepareForTests()
{
parent::prepareForTests();
}
示例4: prepareForTests
protected function prepareForTests()
{
parent::prepareForTests();
//Route::enableFilters();
$this->current_realm = Config::get('app.url');
}