MocksApplicationServices::expectsModelEvents()
  • References/PHP/Laravel/Foundation/Testing/Concerns

$this expectsModelEvents(string $model, array|string $events) Specify a

2025-01-10 15:47:30
ApplicationTrait::withSession()
  • References/PHP/Laravel/Foundation/Testing

$this withSession(array $data) Set the session to the given array.

2025-01-10 15:47:30
MocksApplicationServices::doesntExpectEvents()
  • References/PHP/Laravel/Foundation/Testing/Concerns

$this doesntExpectEvents(array|string $events) Specify a list of events

2025-01-10 15:47:30
HasElement::toString()
  • References/PHP/Laravel/Foundation/Testing/Constraints

string toString() Returns a string representation of the object.

2025-01-10 15:47:30
TestCase::seeJson()
  • References/PHP/Laravel/Foundation/Testing

$this seeJson(array $data = null, bool $negate = false) Assert that the

2025-01-10 15:47:30
InteractsWithDatabase
  • References/PHP/Laravel/Foundation/Testing/Concerns

InteractsWithDatabase trait InteractsWithDatabase (

2025-01-10 15:47:30
HasLink::getFailureDescription()
  • References/PHP/Laravel/Foundation/Testing/Constraints

string getFailureDescription() Returns the description of the failure.

2025-01-10 15:47:30
InteractsWithAuthentication::dontSeeCredentials()
  • References/PHP/Laravel/Foundation/Testing/Concerns

$this dontSeeCredentials(array $credentials, string|null $guard = null) Assert

2025-01-10 15:47:30
MakesHttpRequests::patchJson()
  • References/PHP/Laravel/Foundation/Testing/Concerns

$this patchJson(string $uri, array $data = array(), array $headers = array())

2025-01-10 15:47:30
WithoutMiddleware::disableMiddlewareForAllTests()
  • References/PHP/Laravel/Foundation/Testing

disableMiddlewareForAllTests() Prevent all middleware from being executed for

2025-01-10 15:47:30