File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
tests/Integration/DependencyInjection Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ private function addHooksConfiguration(ArrayNodeDefinition $rootNode): void
7878 return $ v ;
7979 }
8080
81- if (true === $ isTypeDefined ) {
81+ if (true === $ isTypeDefined && false === $ isDisabled ) {
8282 return $ v ;
8383 }
8484
Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ public function testItThrowsExceptionWhenBothTemplateAndComponentShortcutsAreDef
174174 'some_hookable ' => [
175175 'component ' => 'MyAwesomeComponent ' ,
176176 'template ' => 'some_target.html.twig ' ,
177+ 'type ' => 'disabled ' ,
177178 ],
178179 ],
179180 ],
@@ -193,6 +194,7 @@ public function testItThrowsExceptionWhenPropsAreDefinedForNonComponentHookable(
193194 'some_hookable ' => [
194195 'template ' => 'some_target.html.twig ' ,
195196 'props ' => ['key ' => 'value ' ],
197+ 'type ' => 'disabled ' ,
196198 ],
197199 ],
198200 ],
You can’t perform that action at this time.
0 commit comments