diff --git a/lib/Alchemy/Phrasea/Controller/RecordsRequest.php b/lib/Alchemy/Phrasea/Controller/RecordsRequest.php index 28e17b5645..af45c9094b 100644 --- a/lib/Alchemy/Phrasea/Controller/RecordsRequest.php +++ b/lib/Alchemy/Phrasea/Controller/RecordsRequest.php @@ -67,7 +67,7 @@ class RecordsRequest extends ArrayCollection { return new ArrayCollection( array_filter($this->toArray(), function(\record_adapter $record) { - return $record->is_grouping(); + return $record->is_grouping(); }) ); } diff --git a/tests/Alchemy/Phrasea/Controller/Prod/OrderTest.php b/tests/Alchemy/Phrasea/Controller/Prod/OrderTest.php index ec9caa3477..e4e2e195d1 100644 --- a/tests/Alchemy/Phrasea/Controller/Prod/OrderTest.php +++ b/tests/Alchemy/Phrasea/Controller/Prod/OrderTest.php @@ -167,7 +167,7 @@ class OrderTest extends \PhraseanetWebTestCaseAuthenticatedAbstract $receveid = array(static::$records['record_1']->get_serialize_key() => static::$records['record_1']); return \set_order::create( - $this->app['phraseanet.appbox'], new RecordsRequest($receveid, new ArrayCollection($receveid)), 'I need this photos', new \DateTime('+10 minutes') + $this->app['phraseanet.appbox'], new RecordsRequest($receveid, new ArrayCollection($receveid)), self::$user_alt2 ,$usage, new \DateTime('+10 minutes') ); } } diff --git a/tests/record/adapterTest.php b/tests/record/adapterTest.php index a0a18c2890..71bc132eff 100644 --- a/tests/record/adapterTest.php +++ b/tests/record/adapterTest.php @@ -52,13 +52,11 @@ class record_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract $em->persist($basket); $em->flush(); - /** - * @todo CHANGE - */ + $receveid = array(static::$records['record_1']->get_serialize_key() => static::$records['record_1']); return \set_order::create( - $this->app['phraseanet.appbox'], new RecordsRequest($receveid, new ArrayCollection($receveid), $basket), 'I need this photos', new \DateTime('+10 minutes') + \appbox::get_instance(self::$core), new RecordsRequest($receveid, new ArrayCollection($receveid), $basket), 'I need this photos', new \DateTime('+10 minutes') ); }