save() public method

Save the cart state.
public save ( )
コード例 #1
0
ファイル: CartTest.php プロジェクト: kingsj/cart
 public function testSave()
 {
     $store = m::mock('Cart\\Storage\\Store');
     $store->shouldReceive('put')->times(1);
     $cart = new Cart('foo', $store);
     $cart->save();
 }