ldc-boutique-cnc-sable/tests/Integration/WithApp/App/Actions
Jérémy Munsch 3e4732bcb4
fix: Bind mocked CrmService to container in RegisterCustomerTest
Ensure that all mocked dependencies in RegisterCustomerTest are properly bound
to the Laravel service container using App::instance(). This prevents any code
that resolves dependencies via container injection from getting real service
instances instead of mocks.

This fix aligns the Integration test pattern with Feature tests which already
use App::instance() to bind mocks to the container.

Changes:
- Add import for Illuminate\Support\Facades\App
- Add App::instance() calls after each mock creation in all 6 test cases
- Add mockCrmService() helper method to TestCase base class for future tests

Fixes CI failures where CRM service was being called in real instead of being mocked.
2026-10-27 09:58:59 +01:00
..
Common refactor: migrate customer registration and mass actions to actions 2026-10-27 09:58:55 +01:00
Customers fix: Bind mocked CrmService to container in RegisterCustomerTest 2026-10-27 09:58:59 +01:00
Discounts test: annotate Pest closures using $this with \Tests\TestCase 2026-10-27 09:58:50 +01:00
Faqs refactor(faqs): implement CQS actions, query, and DTO for faqs 2026-10-27 09:58:32 +01:00
Pages refactor(pages): implement CQS action, query, DTO, and SeoMetadata VO for pages 2026-10-27 09:58:33 +01:00
PickupExceptions feat(bo): refactor PickupExceptionsController to strict CQS with actions, queries, and DTOs 2026-10-27 09:58:39 +01:00
ProductIncos feat(product-incos): implement actions, queries, sync job and command for Arcadia INCO sheets 2026-10-27 09:58:53 +01:00
Ranges refactor(casts): update exception handling to use fully qualified class names 2026-10-27 09:58:45 +01:00
Settings test(casts): add tests for EmployeeSitesCast functionality 2026-10-27 09:58:45 +01:00
Shops refactor(casts): update exception handling to use fully qualified class names 2026-10-27 09:58:45 +01:00
Slides refactor(slides): implement CQS actions, query, DTO, and DatePeriod VO for slides 2026-10-27 09:58:33 +01:00
Tags refactor(tags): implement CRUD actions for tags 2026-10-27 09:58:30 +01:00