-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] fix assets and templating tests #17658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -438,7 +438,15 @@ public function testAssetHelperWhenAssetsAreEnabled() | |
|
||
public function testAssetHelperWhenTemplatesAreEnabledAndAssetsAreDisabled() | ||
{ | ||
$container = $this->createContainerFromFile('assets_disabled'); | ||
$container = $this->createContainerFromFile('full'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't we remove also There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, good catch. Thanks! |
||
$packages = $container->getDefinition('templating.helper.assets')->getArgument(0); | ||
|
||
$this->assertSame('assets.packages', (string) $packages); | ||
} | ||
|
||
public function testAssetHelperWhenAssetsAndTemplatesAreDisabled() | ||
{ | ||
$container = $this->createContainerFromFile('default_config'); | ||
|
||
$this->assertFalse($container->hasDefinition('templating.helper.assets')); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it still possible to disable the asset system if we don't need it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would mean to revert #17506.