getCartId() public method

Returns the cart id
public getCartId ( ) : string
return string
Beispiel #1
0
 public function testGetCartId()
 {
     $cart = new CartAdd();
     $this->assertEquals(null, $cart->getCartId());
     $cart->setCartId('789');
     $this->assertEquals('789', $cart->getCartId());
 }