PHP Class Sylius\Behat\Context\Ui\Admin\ManagingOrdersContext

Author: Paweł Jędrzejewski ([email protected])
Author: Grzegorz Sadowski ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Order\ShowPageInterface $showPage, Sylius\Behat\Page\Admin\Order\UpdatePageInterface $updatePage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker, Sylius\Behat\Service\SharedSecurityServiceInterface $sharedSecurityService )
iBrowseOrders ( )
iCancelThisOrder ( )
iCheckData ( $itemName )
iDoNotSpecifyNewInformation ( )
iMarkThisOrderAsAPaid ( Sylius\Component\Core\Model\OrderInterface $order )
iMarkThisOrderSPaymentAsRefunded ( Sylius\Component\Core\Model\OrderInterface $order )
iSaveMyChanges ( )
iSeeTheOrder ( Sylius\Component\Core\Model\OrderInterface $order )
iShipThisOrder ( Sylius\Component\Core\Model\OrderInterface $order )
iShouldBeNotifiedAboutItHasBeenSuccessfullyCanceled ( )
iShouldBeNotifiedThatTheAndTheInShippingDetailsAreRequired ( $firstElement, $secondElement, $thirdElement, $fourthElement, $type )
iShouldBeNotifiedThatTheOrderHasBeenSuccessfullyShipped ( )
iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyCompleted ( )
iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyRefunded ( )
iShouldNotBeAbleToCancelThisOrder ( )
iShouldNotBeAbleToFinalizeItsPayment ( Sylius\Component\Core\Model\OrderInterface $order )
iShouldNotBeAbleToShipThisOrder ( Sylius\Component\Core\Model\OrderInterface $order )
iShouldSeeASingleOrderFromCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
iShouldSeeAdProvinceInTheBillingAddress ( $provinceName )
iShouldSeeAsProvinceInTheShippingAddress ( $provinceName )
iShouldSeeOrderWithNumber ( $orderNumber )
iShouldSeeTheOrderWithTotal ( $orderNumber, $total )
iSpecifyTheBillingAddressAs ( Sylius\Component\Addressing\Model\AddressInterface $address )
iSpecifyTheShippingAddressAs ( Sylius\Component\Addressing\Model\AddressInterface $address )
iSpecifyTheirBillingAddressAsFor ( Sylius\Component\Addressing\Model\AddressInterface $address )
iSpecifyTheirShippingAddressAsFor ( Sylius\Component\Addressing\Model\AddressInterface $address )
iSwitchSortingBy ( $fieldName )
iWantToModifyACustomerSShippingAddress ( Sylius\Component\Core\Model\OrderInterface $order )
itShouldBeBilledTo ( Sylius\Component\Core\Model\OrderInterface $order = null, $customerName, $street, $postcode, $city, $countryName )
itShouldBePaidWith ( $paymentMethodName )
itShouldBePlacedByCustomer ( $customerEmail )
itShouldBeShippedTo ( Sylius\Component\Core\Model\OrderInterface $order = null, $customerName, $street, $postcode, $city, $countryName )
itShouldBeShippedViaShippingMethod ( $shippingMethodName )
itShouldHaveAmountOfItems ( $amount )
itShouldHavePaymentState ( $paymentState )
itShouldHaveShipmentState ( $shipmentState )
itShouldHaveState ( $state )
itemCodeShouldBe ( $itemName, $code )
itemDiscountedUnitPriceShouldBe ( $itemName, $discountedUnitPrice )
itemQuantityShouldBe ( $itemName, $quantity )
itemSubtotalShouldBe ( $itemName, $subtotal )
itemTaxShouldBe ( $itemName, $tax )
itemTotalShouldBe ( $itemName, $total )
itemUnitPriceShouldBe ( $itemName, $unitPrice )
itsStateShouldBe ( $state )
orderPaymentStateShouldBeRefunded ( )
specifyItsTrackingCodeAs ( $trackingCode )
theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy ( Sylius\Component\Core\Model\AdminUserInterface $user, Sylius\Component\Core\Model\OrderInterface $order )
theAdministratorShouldSeeThatThisOrderHasBeenPlacedIn ( Sylius\Component\Core\Model\AdminUserInterface $user, Sylius\Component\Core\Model\OrderInterface $order, $currency )
theAdministratorShouldSeeTheOrderWithTotalInOrderList ( Sylius\Component\Core\Model\AdminUserInterface $user, $total )
theCustomerServiceShouldKnowAboutThisAdditionalNotes ( Sylius\Component\Core\Model\AdminUserInterface $user, $note, Sylius\Component\Core\Model\OrderInterface $order )
theFirstOrderShouldHaveNumber ( $number )
theItemShouldHaveDiscount ( $itemName, $discount )
theOrderShouldHaveNumberOfPayments ( $number )
theOrderShouldHavePaymentState ( Sylius\Component\Core\Model\OrderInterface $order, $orderPaymentState )
theOrderShouldHaveShipmentState ( Sylius\Component\Core\Model\OrderInterface $order, $orderShipmentState )
theOrderShouldHaveTax ( $tax )
theOrdersItemsTotalShouldBe ( $itemsTotal )
theOrdersPaymentShouldBe ( $paymentAmount )
theOrdersPromotionDiscountShouldBe ( $promotionDiscount )
theOrdersPromotionTotalShouldBe ( $promotionTotal )
theOrdersShippingChargesShouldBe ( $shippingCharge )
theOrdersShippingTotalShouldBe ( $shippingTotal )
theOrdersTaxTotalShouldBe ( $taxTotal )
theOrdersTotalShouldBe ( $total )
theProductShouldBeInTheItemsList ( $productName )
thisOrderShipmentStateShouldBe ( $shippingState )

Private Methods

Method Description
assertElementValidationMessage ( string $type, string $element, string $expectedMessage )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Order\ShowPageInterface $showPage, Sylius\Behat\Page\Admin\Order\UpdatePageInterface $updatePage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker, Sylius\Behat\Service\SharedSecurityServiceInterface $sharedSecurityService )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$indexPage Sylius\Behat\Page\Admin\Crud\IndexPageInterface
$showPage Sylius\Behat\Page\Admin\Order\ShowPageInterface
$updatePage Sylius\Behat\Page\Admin\Order\UpdatePageInterface
$notificationChecker Sylius\Behat\Service\NotificationCheckerInterface
$sharedSecurityService Sylius\Behat\Service\SharedSecurityServiceInterface

iBrowseOrders() public method

public iBrowseOrders ( )

iCancelThisOrder() public method

public iCancelThisOrder ( )

iCheckData() public method

public iCheckData ( $itemName )

iDoNotSpecifyNewInformation() public method

iMarkThisOrderAsAPaid() public method

public iMarkThisOrderAsAPaid ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iMarkThisOrderSPaymentAsRefunded() public method

public iMarkThisOrderSPaymentAsRefunded ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iSaveMyChanges() public method

public iSaveMyChanges ( )

iSeeTheOrder() public method

public iSeeTheOrder ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iShipThisOrder() public method

public iShipThisOrder ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iShouldBeNotifiedAboutItHasBeenSuccessfullyCanceled() public method

iShouldBeNotifiedThatTheAndTheInShippingDetailsAreRequired() public method

public iShouldBeNotifiedThatTheAndTheInShippingDetailsAreRequired ( $firstElement, $secondElement, $thirdElement, $fourthElement, $type )

iShouldBeNotifiedThatTheOrderHasBeenSuccessfullyShipped() public method

iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyCompleted() public method

iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyRefunded() public method

iShouldNotBeAbleToCancelThisOrder() public method

iShouldNotBeAbleToFinalizeItsPayment() public method

public iShouldNotBeAbleToFinalizeItsPayment ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iShouldNotBeAbleToShipThisOrder() public method

public iShouldNotBeAbleToShipThisOrder ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iShouldSeeASingleOrderFromCustomer() public method

public iShouldSeeASingleOrderFromCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

iShouldSeeAdProvinceInTheBillingAddress() public method

public iShouldSeeAdProvinceInTheBillingAddress ( $provinceName )

iShouldSeeAsProvinceInTheShippingAddress() public method

public iShouldSeeAsProvinceInTheShippingAddress ( $provinceName )

iShouldSeeOrderWithNumber() public method

public iShouldSeeOrderWithNumber ( $orderNumber )

iShouldSeeTheOrderWithTotal() public method

public iShouldSeeTheOrderWithTotal ( $orderNumber, $total )

iSpecifyTheBillingAddressAs() public method

public iSpecifyTheBillingAddressAs ( Sylius\Component\Addressing\Model\AddressInterface $address )
$address Sylius\Component\Addressing\Model\AddressInterface

iSpecifyTheShippingAddressAs() public method

public iSpecifyTheShippingAddressAs ( Sylius\Component\Addressing\Model\AddressInterface $address )
$address Sylius\Component\Addressing\Model\AddressInterface

iSpecifyTheirBillingAddressAsFor() public method

public iSpecifyTheirBillingAddressAsFor ( Sylius\Component\Addressing\Model\AddressInterface $address )
$address Sylius\Component\Addressing\Model\AddressInterface

iSpecifyTheirShippingAddressAsFor() public method

public iSpecifyTheirShippingAddressAsFor ( Sylius\Component\Addressing\Model\AddressInterface $address )
$address Sylius\Component\Addressing\Model\AddressInterface

iSwitchSortingBy() public method

public iSwitchSortingBy ( $fieldName )

iWantToModifyACustomerSShippingAddress() public method

public iWantToModifyACustomerSShippingAddress ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

itShouldBeBilledTo() public method

public itShouldBeBilledTo ( Sylius\Component\Core\Model\OrderInterface $order = null, $customerName, $street, $postcode, $city, $countryName )
$order Sylius\Component\Core\Model\OrderInterface

itShouldBePaidWith() public method

public itShouldBePaidWith ( $paymentMethodName )

itShouldBePlacedByCustomer() public method

public itShouldBePlacedByCustomer ( $customerEmail )

itShouldBeShippedTo() public method

public itShouldBeShippedTo ( Sylius\Component\Core\Model\OrderInterface $order = null, $customerName, $street, $postcode, $city, $countryName )
$order Sylius\Component\Core\Model\OrderInterface

itShouldBeShippedViaShippingMethod() public method

public itShouldBeShippedViaShippingMethod ( $shippingMethodName )

itShouldHaveAmountOfItems() public method

public itShouldHaveAmountOfItems ( $amount )

itShouldHavePaymentState() public method

public itShouldHavePaymentState ( $paymentState )

itShouldHaveShipmentState() public method

public itShouldHaveShipmentState ( $shipmentState )

itShouldHaveState() public method

public itShouldHaveState ( $state )

itemCodeShouldBe() public method

public itemCodeShouldBe ( $itemName, $code )

itemDiscountedUnitPriceShouldBe() public method

public itemDiscountedUnitPriceShouldBe ( $itemName, $discountedUnitPrice )

itemQuantityShouldBe() public method

public itemQuantityShouldBe ( $itemName, $quantity )

itemSubtotalShouldBe() public method

public itemSubtotalShouldBe ( $itemName, $subtotal )

itemTaxShouldBe() public method

public itemTaxShouldBe ( $itemName, $tax )

itemTotalShouldBe() public method

public itemTotalShouldBe ( $itemName, $total )

itemUnitPriceShouldBe() public method

public itemUnitPriceShouldBe ( $itemName, $unitPrice )

itsStateShouldBe() public method

public itsStateShouldBe ( $state )

orderPaymentStateShouldBeRefunded() public method

specifyItsTrackingCodeAs() public method

public specifyItsTrackingCodeAs ( $trackingCode )

theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy() public method

public theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy ( Sylius\Component\Core\Model\AdminUserInterface $user, Sylius\Component\Core\Model\OrderInterface $order )
$user Sylius\Component\Core\Model\AdminUserInterface
$order Sylius\Component\Core\Model\OrderInterface

theAdministratorShouldSeeThatThisOrderHasBeenPlacedIn() public method

public theAdministratorShouldSeeThatThisOrderHasBeenPlacedIn ( Sylius\Component\Core\Model\AdminUserInterface $user, Sylius\Component\Core\Model\OrderInterface $order, $currency )
$user Sylius\Component\Core\Model\AdminUserInterface
$order Sylius\Component\Core\Model\OrderInterface

theAdministratorShouldSeeTheOrderWithTotalInOrderList() public method

public theAdministratorShouldSeeTheOrderWithTotalInOrderList ( Sylius\Component\Core\Model\AdminUserInterface $user, $total )
$user Sylius\Component\Core\Model\AdminUserInterface

theCustomerServiceShouldKnowAboutThisAdditionalNotes() public method

public theCustomerServiceShouldKnowAboutThisAdditionalNotes ( Sylius\Component\Core\Model\AdminUserInterface $user, $note, Sylius\Component\Core\Model\OrderInterface $order )
$user Sylius\Component\Core\Model\AdminUserInterface
$order Sylius\Component\Core\Model\OrderInterface

theFirstOrderShouldHaveNumber() public method

public theFirstOrderShouldHaveNumber ( $number )

theItemShouldHaveDiscount() public method

public theItemShouldHaveDiscount ( $itemName, $discount )

theOrderShouldHaveNumberOfPayments() public method

theOrderShouldHavePaymentState() public method

public theOrderShouldHavePaymentState ( Sylius\Component\Core\Model\OrderInterface $order, $orderPaymentState )
$order Sylius\Component\Core\Model\OrderInterface

theOrderShouldHaveShipmentState() public method

public theOrderShouldHaveShipmentState ( Sylius\Component\Core\Model\OrderInterface $order, $orderShipmentState )
$order Sylius\Component\Core\Model\OrderInterface

theOrderShouldHaveTax() public method

public theOrderShouldHaveTax ( $tax )

theOrdersItemsTotalShouldBe() public method

public theOrdersItemsTotalShouldBe ( $itemsTotal )

theOrdersPaymentShouldBe() public method

public theOrdersPaymentShouldBe ( $paymentAmount )

theOrdersPromotionDiscountShouldBe() public method

public theOrdersPromotionDiscountShouldBe ( $promotionDiscount )

theOrdersPromotionTotalShouldBe() public method

public theOrdersPromotionTotalShouldBe ( $promotionTotal )

theOrdersShippingChargesShouldBe() public method

public theOrdersShippingChargesShouldBe ( $shippingCharge )

theOrdersShippingTotalShouldBe() public method

public theOrdersShippingTotalShouldBe ( $shippingTotal )

theOrdersTaxTotalShouldBe() public method

public theOrdersTaxTotalShouldBe ( $taxTotal )

theOrdersTotalShouldBe() public method

public theOrdersTotalShouldBe ( $total )

theProductShouldBeInTheItemsList() public method

public theProductShouldBeInTheItemsList ( $productName )

thisOrderShipmentStateShouldBe() public method

public thisOrderShipmentStateShouldBe ( $shippingState )