mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	fix phpunit tests errors
This commit is contained in:
		| @@ -12,7 +12,7 @@ declare(strict_types=1); | ||||
| namespace Chill\ActivityBundle\Tests\Export\Aggregator\ACPAggregators; | ||||
|  | ||||
| use Chill\ActivityBundle\Entity\Activity; | ||||
| use Chill\ActivityBundle\Export\Aggregator\BySocialActionAggregator; | ||||
| use Chill\ActivityBundle\Export\Aggregator\ACPAggregators\BySocialActionAggregator; | ||||
| use Chill\MainBundle\Test\Export\AbstractAggregatorTest; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ declare(strict_types=1); | ||||
| namespace Chill\ActivityBundle\Tests\Export\Aggregator\ACPAggregators; | ||||
|  | ||||
| use Chill\ActivityBundle\Entity\Activity; | ||||
| use Chill\ActivityBundle\Export\Aggregator\BySocialIssueAggregator; | ||||
| use Chill\ActivityBundle\Export\Aggregator\ACPAggregators\BySocialIssueAggregator; | ||||
| use Chill\MainBundle\Test\Export\AbstractAggregatorTest; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
|  | ||||
|   | ||||
| @@ -47,10 +47,10 @@ class CreatorJobAggregator implements AggregatorInterface | ||||
|                 $qb->expr()->andX( | ||||
|                     $qb->expr()->eq("{$p}_userHistory.accompanyingPeriod", "acp.id"), | ||||
|                     $qb->expr()->andX( | ||||
|                         $qb->expr()->gte("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->gte("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->orX( | ||||
|                             $qb->expr()->isNull("{$p}_userHistory.endDate"), | ||||
|                             $qb->expr()->lt("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.endDate") | ||||
|                             $qb->expr()->lt("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.endDate") | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
|   | ||||
| @@ -47,10 +47,10 @@ readonly class ReferrerScopeAggregator implements AggregatorInterface | ||||
|                 $qb->expr()->andX( | ||||
|                     $qb->expr()->eq("{$p}_userHistory.accompanyingPeriod", "acp.id"), | ||||
|                     $qb->expr()->andX( | ||||
|                         $qb->expr()->gte("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->gte("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->orX( | ||||
|                             $qb->expr()->isNull("{$p}_userHistory.endDate"), | ||||
|                             $qb->expr()->lt("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.endDate") | ||||
|                             $qb->expr()->lt("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.endDate") | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
| @@ -70,7 +70,7 @@ readonly class ReferrerScopeAggregator implements AggregatorInterface | ||||
|                     ) | ||||
|                 ) | ||||
|             ) | ||||
|             ->addSelect("IDENTITY({$p}_sh.scope) AS {$p}_select") | ||||
|             ->addSelect("IDENTITY({$p}_scopeHistory.scope) AS {$p}_select") | ||||
|             ->addGroupBy("{$p}_select"); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -46,10 +46,10 @@ final readonly class UserJobAggregator implements AggregatorInterface | ||||
|                 $qb->expr()->andX( | ||||
|                     $qb->expr()->eq("{$p}_userHistory.accompanyingPeriod", "acp.id"), | ||||
|                     $qb->expr()->andX( | ||||
|                         $qb->expr()->gte("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->gte("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->orX( | ||||
|                             $qb->expr()->isNull("{$p}_userHistory.endDate"), | ||||
|                             $qb->expr()->lt("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.endDate") | ||||
|                             $qb->expr()->lt("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.endDate") | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
|   | ||||
| @@ -48,10 +48,10 @@ class CreatorJobFilter implements FilterInterface | ||||
|                 $qb->expr()->andX( | ||||
|                     $qb->expr()->eq("{$p}_userHistory.accompanyingPeriod", "acp.id"), | ||||
|                     $qb->expr()->andX( | ||||
|                         $qb->expr()->gte("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->gte("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->orX( | ||||
|                             $qb->expr()->isNull("{$p}_userHistory.endDate"), | ||||
|                             $qb->expr()->lt("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.endDate") | ||||
|                             $qb->expr()->lt("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.endDate") | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
|   | ||||
| @@ -48,10 +48,10 @@ class UserJobFilter implements FilterInterface | ||||
|                 $qb->expr()->andX( | ||||
|                     $qb->expr()->eq("{$p}_userHistory.accompanyingPeriod", "acp.id"), | ||||
|                     $qb->expr()->andX( | ||||
|                         $qb->expr()->gte("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->gte("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->orX( | ||||
|                             $qb->expr()->isNull("{$p}_userHistory.endDate"), | ||||
|                             $qb->expr()->lt("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.endDate") | ||||
|                             $qb->expr()->lt("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.endDate") | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
|   | ||||
| @@ -48,10 +48,10 @@ class UserScopeFilter implements FilterInterface | ||||
|                 $qb->expr()->andX( | ||||
|                     $qb->expr()->eq("{$p}_userHistory.accompanyingPeriod", "acp.id"), | ||||
|                     $qb->expr()->andX( | ||||
|                         $qb->expr()->gte("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->gte("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.startDate"), | ||||
|                         $qb->expr()->orX( | ||||
|                             $qb->expr()->isNull("{$p}_userHistory.endDate"), | ||||
|                             $qb->expr()->lt("COALESCE(acp.endDate, CURRENT_TIMESTAMP)", "{$p}_userHistory.endDate") | ||||
|                             $qb->expr()->lt("COALESCE(acp.closingDate, CURRENT_TIMESTAMP())", "{$p}_userHistory.endDate") | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user