use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
/**
* @internal
*/
class ThemeAssetPackageTest extends TestCase
{ public function testEmptyStack(): void
{ $asset =
new ThemeAssetPackage(['http://localhost'
],
new EmptyVersionStrategy(),
new RequestStack(),
new MD5ThemePathBuilder());
static::
assertSame('http://localhost/all.js',
$asset->
getUrl('/all.js'
));
} public function testAdminRequest(): void
{ $request =
new Request();
$stack =
new RequestStack();
$stack->
push($request);
$asset =
new ThemeAssetPackage(['http://localhost'
],
new EmptyVersionStrategy(),
$stack,
new MD5ThemePathBuilder());