[5.6] Return 201 in case of a Model just created.#21625
[5.6] Return 201 in case of a Model just created.#21625taylorotwell merged 1 commit intolaravel:masterfrom
Conversation
|
@mathielo Tests? |
|
@m1guelpf If only I could... 😔 |
|
Added behaviour? Add some tests. |
Why would people have trouble with you adding tests? |
Totally agree..!
As I said, there is a difference between adding some tests in the middle of others, and creating some new tests classes and way to tests features. When it's only one understandable line added to the code it's ok, but when you add more modifications in the tests that in the features, it can "fear" some people. ¯_(ツ)_/¯ But guys I totally agree with all of you, and I'm a TDD guy, so no need to argue about that with me. |
|
You can easily write an integration test for it. |
|
Look at the routing tests in the Tests/Integrations folder. |
#21603