public function TestingAppService::__construct in Forena Reports 8
Return Current site context.
Return value
array
Overrides AppService::__construct
File
- tests/
src/ Unit/ Mock/ TestingAppService.php, line 39
Class
Namespace
Drupal\Tests\forena\Unit\MockCode
public function __construct() {
$this->modulePath = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
$path = $this->modulePath;
$site = [];
$site['base_path'] = '/';
$site['dir'] = '';
$site['base_url'] = 'http://example.com';
$site['user_name'] = 'testuser';
$site['uid'] = 1;
$site['language'] = $this->language;
$this->siteContext = $site;
$this->default_skin = 'default';
// Determine module installation path based on current code
$this->reportDirectory = "{$path}/tests/reports_overriden";
$this->reportIncludes = [
"{$path}/tests/reports",
];
}