Exemplo n.º 1
0
 /**
  * @param BasketWasPickedUp $event
  */
 private function whenBasketWasPickedUp(BasketWasPickedUp $event)
 {
     $this->basketId = $event->basketId();
     $this->products = [];
     $this->productCount = 0;
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function itExposesItsBasketId()
 {
     $basketId = BasketId::fromString('basket-1');
     $this->assertTrue($basketId->equals($this->event->basketId()));
 }