Before you write an assertion, answer one question: what does the consumer of this endpoint depend on? Not what the controller does internally. Not which method...
Laravel, shipping fast.
Chapter 12 · Testing and Quality Assurance