/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
vendor
/
cakedc
/
auth
/
tests
/
/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests
mkdir
upload
Name
Size
Mode
Actions
App/
-
0755
rm
config/
-
0755
rm
Fixture/
-
0755
rm
TestCase/
-
0755
rm
bootstrap.php
3284
0644
edit
dl
rm
TestApplication.php
1179
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/bootstrap.php
(3284B)
<?php declare(strict_types=1); /** * Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com) * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Test suite bootstrap. * * This function is used to find the location of CakePHP whether CakePHP * has been installed as a dependency of the plugin, or the plugin is itself * installed as a dependency of an application. */ $findRoot = function ($root) { do { $lastRoot = $root; $root = dirname($root); if (is_dir($root . '/vendor/cakephp/cakephp')) { return $root; } } while ($root !== $lastRoot); throw new Exception('Cannot find the root of the application, unable to run tests'); }; $root = $findRoot(__FILE__); unset($findRoot); chdir($root); if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } define('ROOT', $root); define('APP_DIR', 'App'); define('WEBROOT_DIR', 'webroot'); define('APP', ROOT . '/tests/App/'); define('CONFIG', ROOT . '/tests/config/'); define('WWW_ROOT', ROOT . DS . WEBROOT_DIR . DS); define('TESTS', ROOT . DS . 'tests' . DS); define('TMP', ROOT . DS . 'tmp' . DS); define('LOGS', TMP . 'logs' . DS); define('CACHE', TMP . 'cache' . DS); define('CAKE_CORE_INCLUDE_PATH', ROOT . '/vendor/cakephp/cakephp'); define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); define('CAKE', CORE_PATH . 'src' . DS); require ROOT . '/vendor/cakephp/cakephp/src/basics.php'; require ROOT . '/vendor/autoload.php'; Cake\Core\Configure::write('App', [ 'namespace' => 'Users\Test\App', 'encoding' => 'UTF-8', 'base' => false, 'baseUrl' => false, 'dir' => 'src', 'webroot' => WEBROOT_DIR, 'wwwRoot' => WWW_ROOT, 'fullBaseUrl' => 'http://localhost', 'imageBaseUrl' => 'img/', 'jsBaseUrl' => 'js/', 'cssBaseUrl' => 'css/', ]); Cake\Core\Configure::write('debug', true); Cake\Core\Configure::write('App.encoding', 'UTF-8'); ini_set('intl.default_locale', 'en_US'); $TMP = new \Cake\Filesystem\Folder(TMP); $TMP->create(TMP . 'cache/models', 0777); $TMP->create(TMP . 'cache/persistent', 0777); $TMP->create(TMP . 'cache/views', 0777); $cache = [ 'default' => [ 'engine' => 'File', ], '_cake_core_' => [ 'className' => 'File', 'prefix' => 'users_myapp_cake_core_', 'path' => CACHE . 'persistent/', 'serialize' => true, 'duration' => '+10 seconds', ], '_cake_model_' => [ 'className' => 'File', 'prefix' => 'users_app_cake_model_', 'path' => CACHE . 'models/', 'serialize' => 'File', 'duration' => '+10 seconds', ], ]; Cake\Cache\Cache::setConfig($cache); Cake\Core\Configure::write('Session', [ 'defaults' => 'php', ]); //init router \Cake\Routing\Router::reload(); Cake\Core\Configure::write('OAuth.path', [ 'plugin' => 'CakeDC/Users', 'controller' => 'Users', 'action' => 'socialLogin', 'prefix' => null, ]); $app = new \CakeDC\Auth\Test\TestApplication(__DIR__ . DS . 'config'); $app->bootstrap(); $app->pluginBootstrap();
Save
cmd:
run