This commit is contained in:
Romain Neutron
2012-02-17 17:02:56 +01:00
parent 55e6197bf0
commit 3450a77c91
2 changed files with 3 additions and 3 deletions

View File

@@ -390,7 +390,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
$repo = $em->getRepository('\Entities\Basket');
/* @var $repo \Repositories\BasketRepository */
$basket = $repo->findUserBasket($ssel_id, self::$core->getAuthenticatedUser());
$basket = $repo->findUserBasket($ssel_id, self::$core->getAuthenticatedUser(), true);
$this->assertTrue($basket instanceof \Entities\Basket);
$em->remove($basket);
@@ -424,7 +424,7 @@ class API_V1_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
try
{
$repo->findUserBasket($ssel_id, $user);
$repo->findUserBasket($ssel_id, $user, true);
$this->fail('An exception should have been raised');
}
catch (Exception_NotFound $e)