| @@ 71-79 (lines=9) @@ | ||
| 68 | return $page->createPlan(); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function ensureICanUpdatePrices(Manager $I, Scenario $scenario): void |
|
| 72 | { |
|
| 73 | if ($this->id === null) { |
|
| 74 | $scenario->incomplete('ID of the target plan must be set'); |
|
| 75 | } |
|
| 76 | ||
| 77 | $page = new PriceUpdatePage($I, $this->id); |
|
| 78 | $page->updatePrices(); |
|
| 79 | } |
|
| 80 | ||
| 81 | public function ensureICanDeletePrices(Manager $I, Scenario $scenario): void |
|
| 82 | { |
|
| @@ 81-89 (lines=9) @@ | ||
| 78 | $page->updatePrices(); |
|
| 79 | } |
|
| 80 | ||
| 81 | public function ensureICanDeletePrices(Manager $I, Scenario $scenario): void |
|
| 82 | { |
|
| 83 | if ($this->id === null) { |
|
| 84 | $scenario->incomplete('ID of the target plan must be set'); |
|
| 85 | } |
|
| 86 | ||
| 87 | $page = new PriceDeletePage($I, $this->id); |
|
| 88 | $page->deleteTemplatePrices(); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||