Courses

Cursor AI: Laravel Hotel Booking Website

Generate Pest Tests with Cursor

Summary of this lesson:
- Implementing Pest test suite
- Creating feature tests for booking flow
- Adding validation tests
- Setting up test database configuration
Previous: Managing Texts: Hotel Contacts and Social Links
avatar

at 07m35s: I like the idea to pass the query parameters as args and use the call() method:

$response = $this->call('GET', '/rooms/search', [
	'check_in'  => now()->addDay()->format('Y-m-d'),
	'check_out' => now()->addDays(2)->format('Y-m-d'),
	'guests'    => 2,
]);

get() helper should be extended like the post() helper to pass query parameters as an array.

👍 2
avatar
You can use Markdown
avatar
You can use Markdown