From a3e6b625b592d37d502b294c1a49581a41b633de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 4 Apr 2018 17:23:25 +0200 Subject: [PATCH] fix missing count statement --- Test/Export/AbstractFilterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" );