add test - test that getQueryKeys returns an array

This commit is contained in:
Julien Fastré 2017-01-17 12:19:03 +01:00
parent 3671918777
commit 43047c5008

View File

@ -129,6 +129,8 @@ abstract class AbstractAggregatorTest extends KernelTestCase
{
$queryKeys = $this->getAggregator()->getQueryKeys($data);
$this->assertInternalType('array', $queryKeys,
"test that the query keys returned are an array");
$this->assertContainsOnly("string", $queryKeys,
"test that the query keys returned by `getQueryKeys` are only strings");
$this->assertGreaterThanOrEqual(1, count($queryKeys),