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