add some phpdoc

This commit is contained in:
Manuel Raynaud
2013-07-26 15:57:22 +02:00
parent 9f4a2778e3
commit a1a3b73d9c

View File

@@ -159,7 +159,9 @@ class CartTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* cart and customer already exists. Cart and customer are linked.
* *
* cart in session must be return
*/ */
public function testGetCartWithExistingCartAndCustomer() public function testGetCartWithExistingCartAndCustomer()
{ {
@@ -195,6 +197,11 @@ class CartTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($customer->getId(), $getCart->getCustomerId()); $this->assertEquals($customer->getId(), $getCart->getCustomerId());
} }
/**
* Customer is connected but cart not associated to him
*
* A new cart must be created (duplicated) containing customer id
*/
public function testGetCartWithExistinsCartAndCustomerButNotSameCustomerId() public function testGetCartWithExistinsCartAndCustomerButNotSameCustomerId()
{ {
$actionCart = $this->actionCart; $actionCart = $this->actionCart;