Skip to content

Commit b96e470

Browse files
committed
fixing tests
1 parent a2d7a95 commit b96e470

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ private function addAssetMapperSection(ArrayNodeDefinition $rootNode, callable $
848848
->defaultValue('%kernel.project_dir%/importmap.php')
849849
->end()
850850
->scalarNode('importmap_polyfill')
851-
->info('URL of the ES Module Polyfill to use, false to disable.')
851+
->info('URL of the ES Module Polyfill to use, false to disable. Defaults to using a CDN URL.')
852852
->defaultNull()
853853
->end()
854854
->scalarNode('vendor_dir')

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/AbstractControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testSubscribedServices()
7474
'security.token_storage' => '?Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface',
7575
'security.csrf.token_manager' => '?Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface',
7676
'web_link.http_header_serializer' => '?Symfony\\Component\\WebLink\\HttpHeaderSerializer',
77-
'importmap.manager' => '?Symfony\\Component\\ImportMap\\ImportMapManager',
77+
'asset_mapper.importmap.manager' => '?Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapManager',
7878
];
7979

8080
$this->assertEquals($expectedServices, $subscribed, 'Subscribed core services in AbstractController have changed');

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ public function testAssetMapperCanBeEnabled()
106106
'paths' => [],
107107
'server' => true,
108108
'public_prefix' => '/assets/',
109+
'importmap_path' => '%kernel.project_dir%/importmap.php',
110+
'importmap_polyfill' => null,
111+
'vendor_dir' => '%kernel.project_dir%/assets/vendor',
112+
'provider' => 'jspm',
109113
];
110114

111115
$this->assertEquals($defaultConfig, $config['asset_mapper']);
@@ -610,6 +614,10 @@ protected static function getBundleDefaultConfig()
610614
'paths' => [],
611615
'server' => true,
612616
'public_prefix' => '/assets/',
617+
'importmap_path' => '%kernel.project_dir%/importmap.php',
618+
'importmap_polyfill' => null,
619+
'vendor_dir' => '%kernel.project_dir%/assets/vendor',
620+
'provider' => 'jspm',
613621
],
614622
'cache' => [
615623
'pools' => [],

0 commit comments

Comments
 (0)