File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,26 @@ class MyExtensionTest extends AbstractExtensionTestCase
102102To prevent duplication of required configuration values, you can provide some minimal configuration, by overriding
103103the `` getMinimalConfiguration() `` method of the test case.
104104
105+ If your extension implements ` Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface ` , you may test
106+ its effect on execution by passing `` true `` as a second parameter to `` load() `` method.
107+
108+ ``` php
109+ <?php
110+
111+ class MyExtensionTest extends AbstractExtensionTestCase
112+ {
113+ /**
114+ * @test
115+ */
116+ public function after_loading_the_correct_parameter_has_been_set()
117+ {
118+ $this->load(array(), true);
119+
120+ ...
121+ }
122+ }
123+ ```
124+
105125## Testing a compiler pass
106126
107127To test a compiler pass, create a test class and extend from
You can’t perform that action at this time.
0 commit comments