TestCase::assertResponseOk()
  • References/PHP/Laravel/Foundation/Testing

$this assertResponseOk() Assert that the client response has an OK status

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

$this actingAs(Authenticatable $user, string|null

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

bool matches(Crawler $crawler) Reverse the original page constraint result

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
WithoutMiddleware::disableMiddlewareForAllTests()
  • References/PHP/Laravel/Foundation/Testing

disableMiddlewareForAllTests() Prevent all middleware from being executed for

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

$this seeIsChecked(string $selector, bool $negate = false) Assert that

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

$this dontSeeIsSelected(string $selector, string $value) Assert that the

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

void assertSessionMissing(string|array $key) Assert that the session does

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

int artisan(string $command, array $parameters = array()) Call artisan

2025-01-10 15:47:30