fix conflict with where clause in indicator ; initiate a filter test

This commit is contained in:
2022-07-20 23:17:05 +02:00
parent 0d38d4df40
commit d5d3866122
5 changed files with 71 additions and 11 deletions

View File

@@ -0,0 +1,63 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Filter;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
final class SocialIssueFilterTest extends AbstractFilterTest
{
/**
* @var \Chill\PersonBundle\Export\Filter\GenderFilter
*/
private $filter;
protected function setUp(): void
{
parent::setUp();
self::bootKernel();
try {
$this->filter = self::$container->get('chill.person.export.filter_socialissue');
} catch (ServiceNotFoundException $e) {
$this->markTestSkipped('Filter service is not found');
}
}
public function getFilter()
{
return $this->filter;
}
public function getFormData()
{
return [
['accepted_socialissue' => [
]],
['accepted_socialissue' => [
]],
['accepted_socialissue' => [
]],
];
}
public function getQueryBuilders()
{
// TODO: Implement getQueryBuilders() method.
}
}