diff --git a/Test/Export/AbstractFilterTest.php b/Test/Export/AbstractFilterTest.php index dd8f5df04..7721b9212 100644 --- a/Test/Export/AbstractFilterTest.php +++ b/Test/Export/AbstractFilterTest.php @@ -121,7 +121,7 @@ abstract class AbstractFilterTest extends KernelTestCase ); $this->assertGreaterThanOrEqual( $nbOfWhere, - $query->getDQLPart('where') !== null ? count($query->getDQLPart('where')) : 0, + $query->getDQLPart('where') !== null ? $query->getDQLPart('where')->count() : 0, "Test that there are equal or more 'where' clause after that the filter has" . "altered the query" );