Skip to content

Commit b8d082c

Browse files
committed
Fix CS
1 parent c66306a commit b8d082c

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

tests/TestCase/View/Helper/AuthenticationHelperTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class AuthenticationHelperTest extends TestCase {
1515
*/
1616
protected $helper;
1717

18+
/**
19+
* @var array
20+
*/
21+
protected $config;
22+
1823
/**
1924
* setUp method
2025
*

tests/bootstrap.php

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

3+
use Cake\Cache\Cache;
4+
use Cake\Core\Configure;
5+
use Cake\Core\Plugin;
6+
use Cake\Datasource\ConnectionManager;
37
use TestApp\View\AppView;
8+
use TinyAuth\Plugin as TinyAuthPlugin;
49

510
/**
611
* @license http://www.opensource.org/licenses/mit-license.php MIT License
@@ -33,11 +38,11 @@
3338
define('CAKE_CORE_INCLUDE_PATH', ROOT . '/vendor/cakephp/cakephp');
3439
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
3540

36-
Cake\Core\Configure::write('App', [
41+
Configure::write('App', [
3742
'namespace' => 'TestApp',
3843
]);
3944

40-
Cake\Core\Configure::write('debug', true);
45+
Configure::write('debug', true);
4146

4247
$cache = [
4348
'default' => [
@@ -60,7 +65,7 @@
6065
],
6166
];
6267

63-
Cake\Cache\Cache::setConfig($cache);
68+
Cache::setConfig($cache);
6469

6570
// Why has this no effect?
6671
require TESTS . 'config' . DS . 'routes.php';
@@ -69,7 +74,7 @@
6974
define('ROLE_MODERATOR', 2);
7075
define('ROLE_ADMIN', 3);
7176

72-
Cake\Core\Plugin::getCollection()->add(new TinyAuth\Plugin());
77+
Plugin::getCollection()->add(new TinyAuthPlugin());
7378

7479
class_alias(AppView::class, 'App\View\AppView');
7580

@@ -79,7 +84,7 @@ class_alias(AppView::class, 'App\View\AppView');
7984
putenv('db_dsn=sqlite:///:memory:');
8085
}
8186

82-
Cake\Datasource\ConnectionManager::setConfig('test', [
87+
ConnectionManager::setConfig('test', [
8388
'className' => 'Cake\Database\Connection',
8489
'driver' => getenv('db_class') ?: null,
8590
'dsn' => getenv('db_dsn') ?: null,

0 commit comments

Comments
 (0)