delete unecessary comments

fix typo

fix alignment

fix unit tests

fix test
This commit is contained in:
Nicolas Le Goff
2012-09-04 19:55:34 +02:00
parent 74ce2341a2
commit a60e139ae2
3 changed files with 4 additions and 6 deletions

View File

@@ -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();
})
);
}

View File

@@ -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')
);
}
}

View File

@@ -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')
);
}