php-ddd-example
php-ddd-example copied to clipboard
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
Aquí va el primer test unitario! Gracias por echarle un vistazo :D
He creado un test unitario con algo de semántica
Dichas clases Fake son VideoRepositoryNullFake y VideoRepositoryRandomFake
Crear un test unitario sobre la búsqueda de un vídeo existente
Comprobamos que podamos obtener adecuadamente un curso. Para ello se ha realizado un test unitario sobre la clase CourseFinder comprobando los dos escenarios posibles: 1. Que se haya obtenido el...
Testing testing
We can see a `flush` method at [DoctrineRepository.php#L31](https://github.com/CodelyTV/php-ddd-example/blob/main/src/Shared/Infrastructure/Persistence/Doctrine/DoctrineRepository.php#L31). According to [this post](https://www.thinktocode.com/2019/01/24/doctrine-repositories-should-be-collections-without-flush/), Doctrine repositories should be collections without flush.