class RequestFacadeTest extends TestCase
{ public function testUrl(): void
{ $request =
new Request();
$request->server->
set('REQUEST_URI', '/foo/bar'
);
$request->attributes->
set('sw-original-request-uri', 'https://example.com/foo/bar'
);
$facade =
new RequestFacade($request);
static::
assertSame('https://example.com/foo/bar',
$facade->
uri());
} public function testUrlOutsideStorefront(): void
{ $request =
new Request();
$request->server->
set('REQUEST_URI', '/foo/bar'
);
$facade =
new RequestFacade($request);