Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
|
@ -1,29 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Fake an HTTP request, for use during testing.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Test\TestKernel;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
chdir('../../../..');
|
||||
|
||||
$autoloader = require_once 'autoload.php';
|
||||
|
||||
// Change to HTTP.
|
||||
$_SERVER['HTTPS'] = NULL;
|
||||
ini_set('session.cookie_secure', FALSE);
|
||||
foreach ($_SERVER as &$value) {
|
||||
$value = str_replace('core/modules/system/tests/http.php', 'index.php', $value);
|
||||
$value = str_replace('https://', 'http://', $value);
|
||||
}
|
||||
|
||||
$kernel = new TestKernel('testing', $autoloader, TRUE);
|
||||
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
|
||||
$kernel->terminate($request, $response);
|
Reference in a new issue