Created
          June 29, 2020 12:49 
        
      - 
      
 - 
        
Save pascualmg/08a70d91c89677454991c552f7f07b9c to your computer and use it in GitHub Desktop.  
Revisions
- 
        
Pascual Muñoz created this gist
Jun 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ <?php namespace Pcc\Domain\AfterSales\Service; use Doctrine\DBAL\Connection; use Pcc\Domain\AfterSales\RefundMode; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; class RefundModeToAfterSalesCaseAssociatorTest extends KernelTestCase { /** @var Connection */ private $conn; protected function setUp(): void { self::bootKernel(); $this->conn = self::$kernel->getContainer()->get('doctrine.dbal.default_connection'); } public function test_given_when_then() { $someCaseId = 2263388; $service = new RefundModeToAfterSalesCaseAssociator( $this->conn ); $service($someCaseId, RefundMode::credit()); } }