Files
MageSail/Magesail/Test/Stubs/Magento/Framework/App/ResourceConnection.php
T
snxraven 0fa2415106
CI / php (push) Successful in 1m39s
Read X-Forwarded-Host (and HTTP_X_FORWARDED_HOST) so tunnel requests resolve
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.
2026-04-01 19:49:42 -05:00

22 lines
400 B
PHP

<?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;
}
}