Option for AssertModelIs - where to put it #38483
Unanswered
powellblyth
asked this question in
Q&A
Replies: 1 comment
-
You should be able to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I wrote for my project, in the base TestCase class, a little helper to do
AssertModelIs
andAssertModelIsNot
instead of a slightly ugly
I wanted
which is a bit more readable.
I wondered where to put it, so that I could put a PR in. but I didn't find a home.
I see that
Illuminate\Foundation\Testing\Concerns
has some traits in it, butIlluminate\Foundation\Testing\Concerns\InteractsWithModels
doesn't quite feel rightI didn't want to put it in the base model, since obviously the model isn't necessarily being mocked.
Does anyone have time to make a suggestion where might be the correct place to add this pair of assertions please?
Beta Was this translation helpful? Give feedback.
All reactions