fix ProphecyTrait in AbstractFilter to use it with each filter

This commit is contained in:
2022-07-27 12:11:51 +02:00
parent 3dabd031f4
commit 8bbca12487
2 changed files with 6 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ namespace Chill\MainBundle\Test\Export;
use Doctrine\ORM\QueryBuilder;
use Exception;
use Prophecy\PhpUnit\ProphecyTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use function count;
@@ -27,14 +28,16 @@ use function is_string;
*/
abstract class AbstractFilterTest extends KernelTestCase
{
use ProphecyTrait;
/**
* @var \Prophecy\Prophet
*/
protected $prophet;
private $prophet;
protected function setUp(): void
{
$this->prepareProphet();
$$this->prophet = $this->getProphet();
}
public function dataProviderAlterQuery()