save() public method

Save the cart state.
public save ( )
Beispiel #1
0
 public function testSave()
 {
     $store = m::mock('Cart\\Storage\\Store');
     $store->shouldReceive('put')->times(1);
     $cart = new Cart('foo', $store);
     $cart->save();
 }