Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit5cda1c7
committed
feature#3311 Use KernelTestCase instead of WebTestCase for testing code only requiring the Container (johnkary)
This PR was merged into the master branch.Discussion----------Use KernelTestCase instead of WebTestCase for testing code only requiring the Container| Q | A| ------------- | ---| Doc fix? | no| New docs? | yes (symfony/symfony#9739)| Applies to | 2.5| Fixed tickets | noneThis documents using the new KernelTestCase introduced insymfony/symfony#9739, which was recently merged to master for 2.5-dev.KernelTestCase was extracted from WebTestCase to become a more-focused base class for functional testing code that requires only a container but no client. WebTestCase is then more-focused to be used for tests requiring a client.If you think this needs any kind of version callout in the docs to highlight the base class change we can add that too.:rocket:Previous PR#3244 against the 2.4 branch was closed because the corresponding feature was not merged into 2.4.Commits-------6c52b92 [#3311] Use KernelTestCase instead of WebTestCase for tests needing only a Container2 files changed
+16
-8
lines changedLines changed: 12 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
| 186 | + | |
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
| 190 | + | |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
| 193 | + | |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + |
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 |
| - | |
| 40 | + | |
42 | 41 |
| |
43 | 42 |
| |
44 | 43 |
| |
|
0 commit comments
Comments
(0)