Complex classes like ManagingOrdersContext often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ManagingOrdersContext, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 31 | final class ManagingOrdersContext implements Context |
||
| 32 | { |
||
| 33 | /** @var SharedStorageInterface */ |
||
| 34 | private $sharedStorage; |
||
| 35 | |||
| 36 | /** @var IndexPageInterface */ |
||
| 37 | private $indexPage; |
||
| 38 | |||
| 39 | /** @var ShowPageInterface */ |
||
| 40 | private $showPage; |
||
| 41 | |||
| 42 | /** @var UpdatePageInterface */ |
||
| 43 | private $updatePage; |
||
| 44 | |||
| 45 | /** @var HistoryPageInterface */ |
||
| 46 | private $historyPage; |
||
| 47 | |||
| 48 | /** @var NotificationCheckerInterface */ |
||
| 49 | private $notificationChecker; |
||
| 50 | |||
| 51 | /** @var SharedSecurityServiceInterface */ |
||
| 52 | private $sharedSecurityService; |
||
| 53 | |||
| 54 | public function __construct( |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @Given I am browsing orders |
||
| 74 | * @When I browse orders |
||
| 75 | */ |
||
| 76 | public function iBrowseOrders() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @When I browse order's :order history |
||
| 83 | */ |
||
| 84 | public function iBrowseOrderHistory(OrderInterface $order) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @Given /^I am viewing the summary of (this order)$/ |
||
| 91 | * @When I view the summary of the order :order |
||
| 92 | */ |
||
| 93 | public function iSeeTheOrder(OrderInterface $order) |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @When /^I mark (this order) as paid$/ |
||
| 100 | */ |
||
| 101 | public function iMarkThisOrderAsAPaid(OrderInterface $order) |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @When /^I mark (this order)'s payment as refunded$/ |
||
| 108 | */ |
||
| 109 | public function iMarkThisOrderSPaymentAsRefunded(OrderInterface $order) |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @When specify its tracking code as :trackingCode |
||
| 116 | */ |
||
| 117 | public function specifyItsTrackingCodeAs($trackingCode) |
||
| 122 | |||
| 123 | /** |
||
| 124 | * @When /^I ship (this order)$/ |
||
| 125 | */ |
||
| 126 | public function iShipThisOrder(OrderInterface $order) |
||
| 130 | |||
| 131 | /** |
||
| 132 | * @When I switch the way orders are sorted by :fieldName |
||
| 133 | */ |
||
| 134 | public function iSwitchSortingBy($fieldName) |
||
| 138 | |||
| 139 | /** |
||
| 140 | * @When I specify filter date from as :dateTime |
||
| 141 | */ |
||
| 142 | public function iSpecifyFilterDateFromAs($dateTime) |
||
| 146 | |||
| 147 | /** |
||
| 148 | * @When I specify filter date to as :dateTime |
||
| 149 | */ |
||
| 150 | public function iSpecifyFilterDateToAs($dateTime) |
||
| 154 | |||
| 155 | /** |
||
| 156 | * @When I choose :channelName as a channel filter |
||
| 157 | */ |
||
| 158 | public function iChooseChannelAsAChannelFilter($channelName) |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @When I choose :currencyName as the filter currency |
||
| 165 | */ |
||
| 166 | public function iChooseCurrencyAsTheFilterCurrency($currencyName) |
||
| 170 | |||
| 171 | /** |
||
| 172 | * @When I specify filter total being greater than :total |
||
| 173 | */ |
||
| 174 | public function iSpecifyFilterTotalBeingGreaterThan($total) |
||
| 178 | |||
| 179 | /** |
||
| 180 | * @When I specify filter total being less than :total |
||
| 181 | */ |
||
| 182 | public function iSpecifyFilterTotalBeingLessThan($total) |
||
| 186 | |||
| 187 | /** |
||
| 188 | * @When I filter |
||
| 189 | */ |
||
| 190 | public function iFilter() |
||
| 194 | |||
| 195 | /** |
||
| 196 | * @When I resend the order confirmation email |
||
| 197 | */ |
||
| 198 | public function iResendTheOrderConfirmationEmail(): void |
||
| 202 | |||
| 203 | /** |
||
| 204 | * @When I resend the shipment confirmation email |
||
| 205 | */ |
||
| 206 | public function iResendTheShipmentConfirmationEmail(): void |
||
| 210 | |||
| 211 | /** |
||
| 212 | * @Then I should see a single order from customer :customer |
||
| 213 | */ |
||
| 214 | public function iShouldSeeASingleOrderFromCustomer(CustomerInterface $customer) |
||
| 218 | |||
| 219 | /** |
||
| 220 | * @Then I should see a single order in the list |
||
| 221 | */ |
||
| 222 | public function iShouldSeeASingleOrderInTheList(): void |
||
| 226 | |||
| 227 | /** |
||
| 228 | * @Then it should have been placed by the customer :customerEmail |
||
| 229 | */ |
||
| 230 | public function itShouldBePlacedByCustomer($customerEmail) |
||
| 234 | |||
| 235 | /** |
||
| 236 | * @Then it should be shipped to :customerName, :street, :postcode, :city, :countryName |
||
| 237 | * @Then /^(this order) should (?:|still )be shipped to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)"$/ |
||
| 238 | */ |
||
| 239 | public function itShouldBeShippedTo( |
||
| 253 | |||
| 254 | /** |
||
| 255 | * @Then it should be billed to :customerName, :street, :postcode, :city, :countryName |
||
| 256 | * @Then the order should be billed to :customerName, :street, :postcode, :city, :countryName |
||
| 257 | * @Then /^(this order) bill should (?:|still )be shipped to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)"$/ |
||
| 258 | */ |
||
| 259 | public function itShouldBeBilledTo( |
||
| 273 | |||
| 274 | /** |
||
| 275 | * @Then it should have no shipping address set |
||
| 276 | */ |
||
| 277 | public function itShouldHaveNoShippingAddressSet(): void |
||
| 281 | |||
| 282 | /** |
||
| 283 | * @Then it should be shipped via the :shippingMethodName shipping method |
||
| 284 | */ |
||
| 285 | public function itShouldBeShippedViaShippingMethod($shippingMethodName) |
||
| 289 | |||
| 290 | /** |
||
| 291 | * @Then it should be paid with :paymentMethodName |
||
| 292 | */ |
||
| 293 | public function itShouldBePaidWith($paymentMethodName) |
||
| 297 | |||
| 298 | /** |
||
| 299 | * @Then /^it should have (\d+) items$/ |
||
| 300 | * @Then I should see :amount orders in the list |
||
| 301 | */ |
||
| 302 | public function itShouldHaveAmountOfItems($amount = 1) |
||
| 306 | |||
| 307 | /** |
||
| 308 | * @Then the product named :productName should be in the items list |
||
| 309 | */ |
||
| 310 | public function theProductShouldBeInTheItemsList($productName) |
||
| 314 | |||
| 315 | /** |
||
| 316 | * @Then the order's items total should be :itemsTotal |
||
| 317 | */ |
||
| 318 | public function theOrdersItemsTotalShouldBe($itemsTotal) |
||
| 322 | |||
| 323 | /** |
||
| 324 | * @Then /^the order's total should(?:| still) be "([^"]+)"$/ |
||
| 325 | */ |
||
| 326 | public function theOrdersTotalShouldBe($total) |
||
| 330 | |||
| 331 | /** |
||
| 332 | * @Then there should be a shipping charge :shippingCharge |
||
| 333 | */ |
||
| 334 | public function theOrdersShippingChargesShouldBe($shippingCharge) |
||
| 338 | |||
| 339 | /** |
||
| 340 | * @Then the order's shipping total should be :shippingTotal |
||
| 341 | */ |
||
| 342 | public function theOrdersShippingTotalShouldBe($shippingTotal) |
||
| 346 | |||
| 347 | /** |
||
| 348 | * @Then the order's payment should (also) be :paymentAmount |
||
| 349 | */ |
||
| 350 | public function theOrdersPaymentShouldBe($paymentAmount) |
||
| 354 | |||
| 355 | /** |
||
| 356 | * @Then the order should have tax :tax |
||
| 357 | */ |
||
| 358 | public function theOrderShouldHaveTax($tax) |
||
| 362 | |||
| 363 | /** |
||
| 364 | * @Then /^the order's tax total should(?:| still) be "([^"]+)"$/ |
||
| 365 | */ |
||
| 366 | public function theOrdersTaxTotalShouldBe($taxTotal) |
||
| 370 | |||
| 371 | /** |
||
| 372 | * @Then the order's promotion discount should be :promotionAmount from :promotionName promotion |
||
| 373 | */ |
||
| 374 | public function theOrdersPromotionDiscountShouldBeFromPromotion(string $promotionAmount, string $promotionName): void |
||
| 378 | |||
| 379 | /** |
||
| 380 | * @Then the order's shipping promotion should be :promotion |
||
| 381 | */ |
||
| 382 | public function theOrdersShippingPromotionDiscountShouldBe($promotionData) |
||
| 386 | |||
| 387 | /** |
||
| 388 | * @Then /^the order's promotion total should(?:| still) be "([^"]+)"$/ |
||
| 389 | */ |
||
| 390 | public function theOrdersPromotionTotalShouldBe($promotionTotal) |
||
| 394 | |||
| 395 | /** |
||
| 396 | * @When I check :itemName data |
||
| 397 | */ |
||
| 398 | public function iCheckData($itemName) |
||
| 402 | |||
| 403 | /** |
||
| 404 | * @Then /^(its) code should be "([^"]+)"$/ |
||
| 405 | */ |
||
| 406 | public function itemCodeShouldBe($itemName, $code) |
||
| 410 | |||
| 411 | /** |
||
| 412 | * @Then /^(its) unit price should be ([^"]+)$/ |
||
| 413 | */ |
||
| 414 | public function itemUnitPriceShouldBe($itemName, $unitPrice) |
||
| 418 | |||
| 419 | /** |
||
| 420 | * @Then /^(its) discounted unit price should be ([^"]+)$/ |
||
| 421 | */ |
||
| 422 | public function itemDiscountedUnitPriceShouldBe($itemName, $discountedUnitPrice) |
||
| 426 | |||
| 427 | /** |
||
| 428 | * @Then /^(its) quantity should be ([^"]+)$/ |
||
| 429 | */ |
||
| 430 | public function itemQuantityShouldBe($itemName, $quantity) |
||
| 434 | |||
| 435 | /** |
||
| 436 | * @Then /^(its) subtotal should be ([^"]+)$/ |
||
| 437 | */ |
||
| 438 | public function itemSubtotalShouldBe($itemName, $subtotal) |
||
| 442 | |||
| 443 | /** |
||
| 444 | * @Then /^(its) discount should be ([^"]+)$/ |
||
| 445 | */ |
||
| 446 | public function theItemShouldHaveDiscount($itemName, $discount) |
||
| 450 | |||
| 451 | /** |
||
| 452 | * @Then /^(its) tax should be ([^"]+)$/ |
||
| 453 | */ |
||
| 454 | public function itemTaxShouldBe($itemName, $tax) |
||
| 458 | |||
| 459 | /** |
||
| 460 | * @Then /^(its) tax included in price should be ([^"]+)$/ |
||
| 461 | */ |
||
| 462 | public function itsTaxIncludedInPriceShouldBe(string $itemName, string $tax): void |
||
| 466 | |||
| 467 | /** |
||
| 468 | * @Then /^(its) total should be ([^"]+)$/ |
||
| 469 | */ |
||
| 470 | public function itemTotalShouldBe($itemName, $total) |
||
| 474 | |||
| 475 | /** |
||
| 476 | * @Then I should be notified that the order's payment has been successfully completed |
||
| 477 | */ |
||
| 478 | public function iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyCompleted() |
||
| 485 | |||
| 486 | /** |
||
| 487 | * @Then I should be notified that the order's payment has been successfully refunded |
||
| 488 | */ |
||
| 489 | public function iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyRefunded() |
||
| 496 | |||
| 497 | /** |
||
| 498 | * @Then it should have payment state :paymentState |
||
| 499 | * @Then it should have payment with state :paymentState |
||
| 500 | */ |
||
| 501 | public function itShouldHavePaymentState($paymentState) |
||
| 505 | |||
| 506 | /** |
||
| 507 | * @Then it should have order's payment state :orderPaymentState |
||
| 508 | */ |
||
| 509 | public function itShouldHaveOrderPaymentState($orderPaymentState) |
||
| 513 | |||
| 514 | /** |
||
| 515 | * @Then it should have order's shipping state :orderShippingState |
||
| 516 | */ |
||
| 517 | public function itShouldHaveOrderShippingState($orderShippingState) |
||
| 521 | |||
| 522 | /** |
||
| 523 | * @Then it's payment state should be refunded |
||
| 524 | */ |
||
| 525 | public function orderPaymentStateShouldBeRefunded() |
||
| 529 | |||
| 530 | /** |
||
| 531 | * @Then /^I should not be able to mark (this order) as paid again$/ |
||
| 532 | */ |
||
| 533 | public function iShouldNotBeAbleToFinalizeItsPayment(OrderInterface $order) |
||
| 537 | |||
| 538 | /** |
||
| 539 | * @Then I should be notified that the order has been successfully shipped |
||
| 540 | */ |
||
| 541 | public function iShouldBeNotifiedThatTheOrderHasBeenSuccessfullyShipped() |
||
| 548 | |||
| 549 | /** |
||
| 550 | * @Then /^I should not be able to ship (this order)$/ |
||
| 551 | */ |
||
| 552 | public function iShouldNotBeAbleToShipThisOrder(OrderInterface $order) |
||
| 556 | |||
| 557 | /** |
||
| 558 | * @When I cancel this order |
||
| 559 | */ |
||
| 560 | public function iCancelThisOrder() |
||
| 564 | |||
| 565 | /** |
||
| 566 | * @Then I should be notified that it has been successfully updated |
||
| 567 | */ |
||
| 568 | public function iShouldBeNotifiedAboutItHasBeenSuccessfullyCanceled() |
||
| 575 | |||
| 576 | /** |
||
| 577 | * @Then I should not be able to cancel this order |
||
| 578 | */ |
||
| 579 | public function iShouldNotBeAbleToCancelThisOrder() |
||
| 583 | |||
| 584 | /** |
||
| 585 | * @Then this order should have state :state |
||
| 586 | * @Then its state should be :state |
||
| 587 | */ |
||
| 588 | public function itsStateShouldBe($state) |
||
| 592 | |||
| 593 | /** |
||
| 594 | * @Then it should( still) have a :state state |
||
| 595 | */ |
||
| 596 | public function itShouldHaveState($state) |
||
| 600 | |||
| 601 | /** |
||
| 602 | * @Then /^(the administrator) should know about (this additional note) for (this order made by "[^"]+")$/ |
||
| 603 | */ |
||
| 604 | public function theCustomerServiceShouldKnowAboutThisAdditionalNotes( |
||
| 618 | |||
| 619 | /** |
||
| 620 | * @Then I should see an order with :orderNumber number |
||
| 621 | */ |
||
| 622 | public function iShouldSeeOrderWithNumber($orderNumber) |
||
| 626 | |||
| 627 | /** |
||
| 628 | * @Then I should not see an order with :orderNumber number |
||
| 629 | */ |
||
| 630 | public function iShouldNotSeeOrderWithNumber($orderNumber) |
||
| 634 | |||
| 635 | /** |
||
| 636 | * @Then I should not see any orders with currency :currencyCode |
||
| 637 | */ |
||
| 638 | public function iShouldNotSeeAnyOrderWithCurrency($currencyCode) |
||
| 642 | |||
| 643 | /** |
||
| 644 | * @Then the first order should have number :number |
||
| 645 | */ |
||
| 646 | public function theFirstOrderShouldHaveNumber($number) |
||
| 650 | |||
| 651 | /** |
||
| 652 | * @Then it should have shipment in state :shipmentState |
||
| 653 | */ |
||
| 654 | public function itShouldHaveShipmentState($shipmentState) |
||
| 658 | |||
| 659 | /** |
||
| 660 | * @Then order :orderNumber should have shipment state :shippingState |
||
| 661 | */ |
||
| 662 | public function thisOrderShipmentStateShouldBe($shippingState) |
||
| 666 | |||
| 667 | /** |
||
| 668 | * @Then the order :order should have order payment state :orderPaymentState |
||
| 669 | * @Then /^(this order) should have order payment state "([^"]+)"$/ |
||
| 670 | */ |
||
| 671 | public function theOrderShouldHavePaymentState(OrderInterface $order, $orderPaymentState) |
||
| 675 | |||
| 676 | /** |
||
| 677 | * @Then the order :order should have order shipping state :orderShippingState |
||
| 678 | * @Then /^(this order) should have order shipping state "([^"]+)"$/ |
||
| 679 | */ |
||
| 680 | public function theOrderShouldHaveShippingState(OrderInterface $order, $orderShippingState) |
||
| 684 | |||
| 685 | /** |
||
| 686 | * @Then /^there should be(?:| only) (\d+) payments?$/ |
||
| 687 | */ |
||
| 688 | public function theOrderShouldHaveNumberOfPayments($number) |
||
| 692 | |||
| 693 | /** |
||
| 694 | * @Then I should see the order :orderNumber with total :total |
||
| 695 | */ |
||
| 696 | public function iShouldSeeTheOrderWithTotal($orderNumber, $total) |
||
| 700 | |||
| 701 | /** |
||
| 702 | * @When /^I want to modify a customer's (?:billing|shipping) address of (this order)$/ |
||
| 703 | */ |
||
| 704 | public function iWantToModifyACustomerSShippingAddress(OrderInterface $order) |
||
| 708 | |||
| 709 | /** |
||
| 710 | * @When I save my changes |
||
| 711 | * @When I try to save my changes |
||
| 712 | */ |
||
| 713 | public function iSaveMyChanges() |
||
| 717 | |||
| 718 | /** |
||
| 719 | * @When /^I specify their (?:|new )shipping (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/ |
||
| 720 | */ |
||
| 721 | public function iSpecifyTheirShippingAddressAsFor(AddressInterface $address) |
||
| 725 | |||
| 726 | /** |
||
| 727 | * @When /^I specify their (?:|new )billing (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/ |
||
| 728 | */ |
||
| 729 | public function iSpecifyTheirBillingAddressAsFor(AddressInterface $address) |
||
| 733 | |||
| 734 | /** |
||
| 735 | * @Then /^I should be notified that the "([^"]+)", the "([^"]+)", the "([^"]+)" and the "([^"]+)" in (shipping|billing) details are required$/ |
||
| 736 | */ |
||
| 737 | public function iShouldBeNotifiedThatTheAndTheInShippingDetailsAreRequired($firstElement, $secondElement, $thirdElement, $fourthElement, $type) |
||
| 744 | |||
| 745 | /** |
||
| 746 | * @Then I should see :provinceName as province in the shipping address |
||
| 747 | */ |
||
| 748 | public function iShouldSeeAsProvinceInTheShippingAddress($provinceName) |
||
| 752 | |||
| 753 | /** |
||
| 754 | * @Then I should see :provinceName ad province in the billing address |
||
| 755 | */ |
||
| 756 | public function iShouldSeeAdProvinceInTheBillingAddress($provinceName) |
||
| 760 | |||
| 761 | /** |
||
| 762 | * @Then /^(the administrator) should know about IP address of (this order made by "[^"]+")$/ |
||
| 763 | */ |
||
| 764 | public function theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy( |
||
| 777 | |||
| 778 | /** |
||
| 779 | * @When /^I (clear old billing address) information$/ |
||
| 780 | */ |
||
| 781 | public function iSpecifyTheBillingAddressAs(AddressInterface $address) |
||
| 785 | |||
| 786 | /** |
||
| 787 | * @When /^I (clear old shipping address) information$/ |
||
| 788 | */ |
||
| 789 | public function iSpecifyTheShippingAddressAs(AddressInterface $address) |
||
| 793 | |||
| 794 | /** |
||
| 795 | * @When /^I do not specify new information$/ |
||
| 796 | */ |
||
| 797 | public function iDoNotSpecifyNewInformation() |
||
| 801 | |||
| 802 | /** |
||
| 803 | * @Then /^(the administrator) should see that (order placed by "[^"]+") has "([^"]+)" currency$/ |
||
| 804 | */ |
||
| 805 | public function theAdministratorShouldSeeThatThisOrderHasBeenPlacedIn(AdminUserInterface $user, OrderInterface $order, $currency) |
||
| 813 | |||
| 814 | /** |
||
| 815 | * @Then /^(the administrator) should see the order with total "([^"]+)" in order list$/ |
||
| 816 | */ |
||
| 817 | public function theAdministratorShouldSeeTheOrderWithTotalInOrderList(AdminUserInterface $user, $total) |
||
| 825 | |||
| 826 | /** |
||
| 827 | * @Then there should be :count changes in the registry |
||
| 828 | */ |
||
| 829 | public function thereShouldBeCountChangesInTheRegistry($count) |
||
| 833 | |||
| 834 | /** |
||
| 835 | * @Then I should not be able to refund this payment |
||
| 836 | */ |
||
| 837 | public function iShouldNotBeAbleToRefundThisPayment() |
||
| 841 | |||
| 842 | /** |
||
| 843 | * @Then I should not see information about shipments |
||
| 844 | */ |
||
| 845 | public function iShouldNotSeeInformationAboutShipments(): void |
||
| 849 | |||
| 850 | /** |
||
| 851 | * @Then the :productName product's unit price should be :price |
||
| 852 | */ |
||
| 853 | public function productUnitPriceShouldBe(string $productName, string $price): void |
||
| 857 | |||
| 858 | /** |
||
| 859 | * @Then the :productName product's item discount should be :price |
||
| 860 | */ |
||
| 861 | public function productItemDiscountShouldBe(string $productName, string $price): void |
||
| 865 | |||
| 866 | /** |
||
| 867 | * @Then the :productName product's order discount should be :price |
||
| 868 | */ |
||
| 869 | public function productOrderDiscountShouldBe(string $productName, string $price): void |
||
| 873 | |||
| 874 | /** |
||
| 875 | * @Then the :productName product's quantity should be :quantity |
||
| 876 | */ |
||
| 877 | public function productQuantityShouldBe(string $productName, string $quantity): void |
||
| 881 | |||
| 882 | /** |
||
| 883 | * @Then the :productName product's subtotal should be :subTotal |
||
| 884 | */ |
||
| 885 | public function productSubtotalShouldBe(string $productName, string $subTotal): void |
||
| 889 | |||
| 890 | /** |
||
| 891 | * @Then the :productName product's discounted unit price should be :price |
||
| 892 | */ |
||
| 893 | public function productDiscountedUnitPriceShouldBe(string $productName, string $price): void |
||
| 897 | |||
| 898 | /** |
||
| 899 | * @Then I should be informed that there are no payments |
||
| 900 | */ |
||
| 901 | public function iShouldSeeInformationAboutNoPayments(): void |
||
| 906 | |||
| 907 | /** |
||
| 908 | * @Then /^I should be notified that the (order|shipment) confirmation email has been successfully resent to the customer$/ |
||
| 909 | */ |
||
| 910 | public function iShouldBeNotifiedThatTheOrderConfirmationEmailHasBeenSuccessfullyResentToTheCustomer(string $type): void |
||
| 917 | |||
| 918 | /** |
||
| 919 | * @Then I should see the shipping date as :dateTime |
||
| 920 | */ |
||
| 921 | public function iShouldSeeTheShippingDateAs(string $dateTime): void |
||
| 925 | |||
| 926 | /** |
||
| 927 | * @param string $type |
||
| 928 | * @param string $element |
||
| 929 | * @param string $expectedMessage |
||
| 930 | * |
||
| 931 | * @throws \InvalidArgumentException |
||
| 932 | */ |
||
| 933 | private function assertElementValidationMessage($type, $element, $expectedMessage) |
||
| 938 | } |
||
| 939 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.