Read X-Forwarded-Host (and HTTP_X_FORWARDED_HOST) so tunnel requests resolve
CI / php (push) Successful in 1m39s

the correct store behind a proxy.
TunnelStoreProvisioner now receives ResourceConnection and copies default web
CMS pages/blocks and theme-related setup for new tunnel stores.
Tighten system.xml (remove invalid default), crontab/config defaults, and
update tests with a ResourceConnection stub for PHPUnit.
This commit is contained in:
2026-04-01 19:49:42 -05:00
parent f9d31a5efa
commit 0fa2415106
7 changed files with 156 additions and 29 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace Magento\Framework\App;
/**
* Minimal stub so PHPUnit can mock {@see \Magento\Framework\App\ResourceConnection} in unit tests.
*/
class ResourceConnection
{
public function getConnection(?string $resourceName = null): mixed
{
return null;
}
public function getTableName(string $table): string
{
return $table;
}
}