Skip to content

Commit a419d61

Browse files
committed
Fix CS.
1 parent 3c9c9b5 commit a419d61

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

tests/bootstrap.php

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<?php
22

3+
use Awesome\Plugin as AwesomePlugin;
34
use Cake\Cache\Cache;
5+
use Cake\Controller\Controller;
46
use Cake\Core\Configure;
57
use Cake\Core\Plugin;
68
use Cake\Database\Type;
9+
use Cake\Datasource\ConnectionManager;
10+
use Controllers\Plugin as ControllersPlugin;
11+
use IdeHelper\Plugin as IdeHelperPlugin;
12+
use MyNamespace\MyPlugin\Plugin as MyNamespaceMyPluginPlugin;
13+
use Relations\Plugin as RelationsPlugin;
14+
use Shim\Plugin as ShimPlugin;
715

816
if (!defined('DS')) {
917
define('DS', DIRECTORY_SEPARATOR);
@@ -70,17 +78,17 @@
7078
Type::build('datetime');
7179
Type::build('timestamp');
7280

73-
class_alias(Cake\Controller\Controller::class, 'App\Controller\AppController');
81+
class_alias(Controller::class, 'App\Controller\AppController');
7482

75-
Plugin::getCollection()->add(new IdeHelper\Plugin());
76-
Plugin::getCollection()->add(new Shim\Plugin());
77-
Plugin::getCollection()->add(new Awesome\Plugin());
78-
Plugin::getCollection()->add(new Controllers\Plugin());
79-
Plugin::getCollection()->add(new Relations\Plugin());
80-
Plugin::getCollection()->add(new MyNamespace\MyPlugin\Plugin());
83+
Plugin::getCollection()->add(new IdeHelperPlugin());
84+
Plugin::getCollection()->add(new ShimPlugin());
85+
Plugin::getCollection()->add(new AwesomePlugin());
86+
Plugin::getCollection()->add(new ControllersPlugin());
87+
Plugin::getCollection()->add(new RelationsPlugin());
88+
Plugin::getCollection()->add(new MyNamespaceMyPluginPlugin());
8189

8290
if (getenv('db_dsn')) {
83-
Cake\Datasource\ConnectionManager::setConfig('test', [
91+
ConnectionManager::setConfig('test', [
8492
'className' => 'Cake\Database\Connection',
8593
'url' => getenv('db_dsn'),
8694
'timezone' => 'UTC',
@@ -98,7 +106,7 @@ class_alias(Cake\Controller\Controller::class, 'App\Controller\AppController');
98106
//putenv('db_dsn=postgres://[email protected]/test');
99107
}
100108

101-
Cake\Datasource\ConnectionManager::setConfig('test', [
109+
ConnectionManager::setConfig('test', [
102110
'url' => getenv('db_dsn'),
103111
'driver' => getenv('db_class'),
104112
'database' => getenv('db_database'),

0 commit comments

Comments
 (0)