Fix unit tests

This commit is contained in:
Romain Neutron
2014-02-20 12:34:53 +01:00
parent ad34bfa854
commit 25073721c8
10 changed files with 49 additions and 47 deletions

View File

@@ -424,7 +424,7 @@ class User
self::GENDER_MISS,
self::GENDER_MR,
self::GENDER_MRS
])) {
], true)) {
throw new InvalidArgumentException(sprintf("Invalid gender %s.", $gender));
}

View File

@@ -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;
}
/**

View File

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