public function attachProduct(Plan $product) { $this->currentState->setProduct($product); }
public function test_setProduct() { $this->setExpectedException('Trismegiste\\PortalBundle\\Model\\State\\InvalidTransitionException'); $this->sut->setProduct(new Plan([])); }