mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix unit tests
This commit is contained in:
@@ -424,7 +424,7 @@ class User
|
||||
self::GENDER_MISS,
|
||||
self::GENDER_MR,
|
||||
self::GENDER_MRS
|
||||
])) {
|
||||
], true)) {
|
||||
throw new InvalidArgumentException(sprintf("Invalid gender %s.", $gender));
|
||||
}
|
||||
|
||||
|
@@ -96,13 +96,13 @@ class ValidationSession
|
||||
}
|
||||
|
||||
/**
|
||||
* Get initiator_id
|
||||
* Get validation initiator
|
||||
*
|
||||
* @return integer
|
||||
* @return User
|
||||
*/
|
||||
public function getInitiator()
|
||||
{
|
||||
return $this->initiator_id;
|
||||
return $this->initiator;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -109,7 +109,7 @@ class BasketElementRepository extends EntityRepository
|
||||
LEFT JOIN b.validation s
|
||||
LEFT JOIN s.participants p
|
||||
WHERE b.user = :usr_id
|
||||
AND b.pusher_id IS NOT NULL
|
||||
AND b.pusher IS NOT NULL
|
||||
AND e.record_id = :record_id
|
||||
AND e.sbas_id = :sbas_id';
|
||||
|
||||
|
Reference in New Issue
Block a user