mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
adapt ExportManager test to current api
This commit is contained in:
parent
ef96aad966
commit
428007284e
@ -542,14 +542,15 @@ class ExportManagerTest extends KernelTestCase
|
||||
|
||||
$export = $this->prophet->prophesize();
|
||||
$export->willImplement(ExportInterface::class);
|
||||
$em = $this->container->get('doctrine.orm.entity_manager');
|
||||
$export->initiateQuery(
|
||||
Argument::Type(QueryBuilder::class),
|
||||
Argument::is(array('foo')),
|
||||
Argument::Type('array'),
|
||||
Argument::is(array('a' => 'b'))
|
||||
)
|
||||
->will(function ($qb) {
|
||||
return $qb[0]->addSelect('COUNT(user.id) as export')
|
||||
->will(function () use ($em) {
|
||||
$qb = $em->createQueryBuilder();
|
||||
return $qb->addSelect('COUNT(user.id) as export')
|
||||
->from('ChillMainBundle:User', 'user');
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user