No description
Find a file
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
.gitlab/issue_templates refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.intellipest refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.vscode chore(vscode): clean up PHP configuration settings 2026-10-27 09:58:57 +01:00
app refactor: phpcs fixes on StoreShopRequest 2026-10-27 09:58:58 +01:00
bootstrap feat: flash warning message when unauthenticated guest is redirected to login 2026-10-27 09:58:55 +01:00
config feat(arcadia): add ArcadiaIncoService and DTOs to fetch and preview INCO sheets via Arcadia API 2026-10-27 09:58:53 +01:00
database chore(database): drop legacy xml_incos table and model in favor of Arcadia API 2026-10-27 09:58:52 +01:00
domain feat(domain): introduce DiscountRate VO and eliminate float rounding in pricing calculations 2026-10-27 09:58:54 +01:00
infra/Adapters feat(domain): introduce DiscountRate VO and eliminate float rounding in pricing calculations 2026-10-27 09:58:54 +01:00
lang fix(lang): update French translations and validation messages 2026-10-27 09:58:57 +01:00
public refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
resources feat: flash warning message when unauthenticated guest is redirected to login 2026-10-27 09:58:55 +01:00
routes feat(bo/product-incos): adapt BO controller, requests, routes and views for Arcadia INCO management 2026-10-27 09:58:53 +01:00
shared feat(slides): indicate visibility in BO and fix conditional slider display in FO 2026-10-27 09:58:47 +01:00
storage Gestion des erreurs d'import xml pour données inconsistentes 2021-07-28 11:43:26 +02:00
tests fix: Bind mocked CrmService to container in RegisterCustomerTest 2026-10-27 09:58:59 +01:00
.browserslistrc fix: update browserslist to exclude Firefox versions < 100 2026-10-27 09:58:16 +01:00
.dockerignore refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.editorconfig refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.env.example feat(env): update environment variables for Arcadia API and LDC 2026-10-27 09:58:54 +01:00
.gitattributes refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.gitignore refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.gitlab-ci.yml ci: update bun install command to use --no-save 2026-10-27 09:58:58 +01:00
.jsconfig.json ranges page 2022-10-05 16:41:09 +02:00
.styleci.yml refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
.stylelintrc.json refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
artisan init 2020-10-30 17:26:00 +01:00
bun.lock Revert "chore(deps): update bun.lock after removing unused npm packages" 2026-10-27 09:58:52 +01:00
CHANGELOG.md refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
commitlint.config.cjs refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
composer.json chore(dependencies): update dxw/cidr and slevomat/coding-standard versions 2026-10-27 09:58:56 +01:00
composer.lock chore: update dependencies to latest versions 2026-10-27 09:58:56 +01:00
Dockerfile ci: update docker file in order to use bun 2026-10-27 09:58:14 +01:00
eslint.config.js refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
k8s-queues.sh feat: Clean and add CICD for K8S migration 2025-01-24 15:32:29 +01:00
manifest.yaml feat(env): update environment variables for Arcadia API and LDC 2026-10-27 09:58:54 +01:00
package-lock.json chore(deps): update package-lock.json after package.json dependency removals 2026-10-27 09:58:53 +01:00
package.json chore(deps): remove unused npm packages fancybox, tippy.js and resolve-url-loader 2026-10-27 09:58:50 +01:00
phpcs.xml fix(phpcs): enable searchAnnotations in UnusedUses sniff configuration 2026-10-27 09:58:48 +01:00
phpstan.neon refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
phpunit.xml test(casts): add tests for EmployeeSitesCast functionality 2026-10-27 09:58:45 +01:00
pint.json refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
production-resources.yaml feat: Clean and add CICD for K8S migration 2025-01-24 15:32:29 +01:00
README.md refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
rector.php refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
REGLES METIERS.md refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
RGPD.md refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
staging-resources.yaml ci: added staging-resources.yaml + define pod resources + limit cronjobs 2026-02-03 09:36:35 +01:00
tsconfig.json refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
vite.config.ts chore(config): add fileURLToPath import for path resolution 2026-10-27 09:58:35 +01:00
vitest.config.ts chore(config): add fileURLToPath import for path resolution 2026-10-27 09:58:35 +01:00

Boutique Click N Collect Sablé

Table of contents

Frameworks, Platforms and Libraries

SASS TypeScript Vite PHP Laravel Vue.js

Installation

cp .env.example .env
vi .env
composer install
php artisan storage:link
npm i
npm run prod

Tests

cp .env.example .env.testing
vi .env.testing
composer install
php artisan storage:link
composer run test

Deployment

php artisan schedule:run

Available Commands

php artisan ldcweb:admin-secure-sync

Créer un utilisateur :

php artisan create:admin

Changelog

See the CHANGELOG.md file for details.

Architecture

Ce projet suit les principes de l'Architecture Hexagonale (Ports et Adapteurs) et du Domain-Driven Design (DDD). L'objectif est d'isoler au maximum la logique métier de l'infrastructure (framework Laravel, base de données, requêtes réseau) pour avoir un code robuste, pérenne et facile à tester.

Règles d'Or (Verrouillées par les tests)

Afin de faciliter l'onboarding et d'assurer que l'architecture ne dérive pas, Pest Arch et PHPStan (Level 9) garantissent les principes suivants à chaque commit :

  1. Isolation totale du Domaine (Le Cœur) : Le code dans domain/ ne doit jamais dépendre du Framework (Illuminate\), de App\, ou de Infrastructure\. Il ne dépend que de PHP natif.
  2. Inversion des Dépendances : L'Application et l'Infrastructure dépendent du Domaine, et jamais l'inverse. Le domaine expose des Ports (Interfaces) que l'infrastructure implémente via ses Adapters.
  3. Entités et Objets-Valeurs Purs : Le domaine manipule ses propres Entités et ValueObjects validés et typés fortement. L'utilisation directe des modèles Eloquent est strictement interdite dans le domaine.
  4. Conventions de Nommage : Chaque composant a une place et un suffixe stricts : *Service, *Repository, *Exception, *Dto. Les tests échoueront si la convention n'est pas respectée.