mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
clone query builder to avoid to run test on altered queries
if the instance is not cloned, the queryBuilder is used multiple times, and the second test is run on an already altered test.
This commit is contained in:
parent
7c57dd3661
commit
b5737f4801
@ -77,7 +77,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
{
|
||||
foreach ($this->getQueryBuilders() as $qb) {
|
||||
foreach ($this->getFormData() as $data) {
|
||||
yield array($qb, $data);
|
||||
yield array(clone $qb, $data);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -89,7 +89,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
{
|
||||
foreach ($this->getQueryBuilders() as $qb) {
|
||||
foreach ($this->getFormData() as $data) {
|
||||
yield array($qb, $data);
|
||||
yield array(clone $qb, $data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user