mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	Refactor test, fixing the constructor
This commit is contained in:
		| @@ -16,7 +16,7 @@ use Chill\PersonBundle\Repository\PersonACLAwareRepositoryInterface; | ||||
| use Chill\TicketBundle\Action\Ticket\AssociateByPhonenumberCommand; | ||||
| use Chill\TicketBundle\Action\Ticket\Handler\AssociateByPhonenumberCommandHandler; | ||||
| use Chill\TicketBundle\Entity\Ticket; | ||||
| use Doctrine\Persistence\ObjectManager; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use libphonenumber\PhoneNumberUtil; | ||||
| use PHPUnit\Framework\TestCase; | ||||
| use Prophecy\Argument; | ||||
| @@ -35,13 +35,13 @@ class AssociateByPhonenumberCommandHandlerTest extends TestCase | ||||
|     private function getHandler( | ||||
|         PersonACLAwareRepositoryInterface $personACLAwareRepository, | ||||
|     ): AssociateByPhonenumberCommandHandler { | ||||
|         $objectManager = $this->prophesize(ObjectManager::class); | ||||
|         $entityManager = $this->prophesize(EntityManagerInterface::class); | ||||
|  | ||||
|         return new AssociateByPhonenumberCommandHandler( | ||||
|             $personACLAwareRepository, | ||||
|             PhoneNumberUtil::getInstance(), | ||||
|             new MockClock(), | ||||
|             $objectManager->reveal() | ||||
|             $entityManager->reveal() | ||||
|         ); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user