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
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode 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

Méthode Description
assertElementValidationMessage ( string $type, string $element, string $expectedMessage )

Method Details

__construct() public méthode

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 méthode

public iBrowseOrders ( )

iCancelThisOrder() public méthode

public iCancelThisOrder ( )

iCheckData() public méthode

public iCheckData ( $itemName )

iDoNotSpecifyNewInformation() public méthode

iMarkThisOrderAsAPaid() public méthode

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

iMarkThisOrderSPaymentAsRefunded() public méthode

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

iSaveMyChanges() public méthode

public iSaveMyChanges ( )

iSeeTheOrder() public méthode

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

iShipThisOrder() public méthode

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

iShouldBeNotifiedAboutItHasBeenSuccessfullyCanceled() public méthode

iShouldBeNotifiedThatTheAndTheInShippingDetailsAreRequired() public méthode

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

iShouldBeNotifiedThatTheOrderHasBeenSuccessfullyShipped() public méthode

iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyCompleted() public méthode

iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyRefunded() public méthode

iShouldNotBeAbleToCancelThisOrder() public méthode

iShouldNotBeAbleToFinalizeItsPayment() public méthode

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

iShouldNotBeAbleToShipThisOrder() public méthode

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

iShouldSeeASingleOrderFromCustomer() public méthode

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

iShouldSeeAdProvinceInTheBillingAddress() public méthode

public iShouldSeeAdProvinceInTheBillingAddress ( $provinceName )

iShouldSeeAsProvinceInTheShippingAddress() public méthode

public iShouldSeeAsProvinceInTheShippingAddress ( $provinceName )

iShouldSeeOrderWithNumber() public méthode

public iShouldSeeOrderWithNumber ( $orderNumber )

iShouldSeeTheOrderWithTotal() public méthode

public iShouldSeeTheOrderWithTotal ( $orderNumber, $total )

iSpecifyTheBillingAddressAs() public méthode

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

iSpecifyTheShippingAddressAs() public méthode

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

iSpecifyTheirBillingAddressAsFor() public méthode

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

iSpecifyTheirShippingAddressAsFor() public méthode

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

iSwitchSortingBy() public méthode

public iSwitchSortingBy ( $fieldName )

iWantToModifyACustomerSShippingAddress() public méthode

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

itShouldBeBilledTo() public méthode

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

itShouldBePaidWith() public méthode

public itShouldBePaidWith ( $paymentMethodName )

itShouldBePlacedByCustomer() public méthode

public itShouldBePlacedByCustomer ( $customerEmail )

itShouldBeShippedTo() public méthode

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

itShouldBeShippedViaShippingMethod() public méthode

public itShouldBeShippedViaShippingMethod ( $shippingMethodName )

itShouldHaveAmountOfItems() public méthode

public itShouldHaveAmountOfItems ( $amount )

itShouldHavePaymentState() public méthode

public itShouldHavePaymentState ( $paymentState )

itShouldHaveShipmentState() public méthode

public itShouldHaveShipmentState ( $shipmentState )

itShouldHaveState() public méthode

public itShouldHaveState ( $state )

itemCodeShouldBe() public méthode

public itemCodeShouldBe ( $itemName, $code )

itemDiscountedUnitPriceShouldBe() public méthode

public itemDiscountedUnitPriceShouldBe ( $itemName, $discountedUnitPrice )

itemQuantityShouldBe() public méthode

public itemQuantityShouldBe ( $itemName, $quantity )

itemSubtotalShouldBe() public méthode

public itemSubtotalShouldBe ( $itemName, $subtotal )

itemTaxShouldBe() public méthode

public itemTaxShouldBe ( $itemName, $tax )

itemTotalShouldBe() public méthode

public itemTotalShouldBe ( $itemName, $total )

itemUnitPriceShouldBe() public méthode

public itemUnitPriceShouldBe ( $itemName, $unitPrice )

itsStateShouldBe() public méthode

public itsStateShouldBe ( $state )

orderPaymentStateShouldBeRefunded() public méthode

specifyItsTrackingCodeAs() public méthode

public specifyItsTrackingCodeAs ( $trackingCode )

theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy() public méthode

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 méthode

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 méthode

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

theCustomerServiceShouldKnowAboutThisAdditionalNotes() public méthode

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 méthode

public theFirstOrderShouldHaveNumber ( $number )

theItemShouldHaveDiscount() public méthode

public theItemShouldHaveDiscount ( $itemName, $discount )

theOrderShouldHaveNumberOfPayments() public méthode

theOrderShouldHavePaymentState() public méthode

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

theOrderShouldHaveShipmentState() public méthode

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

theOrderShouldHaveTax() public méthode

public theOrderShouldHaveTax ( $tax )

theOrdersItemsTotalShouldBe() public méthode

public theOrdersItemsTotalShouldBe ( $itemsTotal )

theOrdersPaymentShouldBe() public méthode

public theOrdersPaymentShouldBe ( $paymentAmount )

theOrdersPromotionDiscountShouldBe() public méthode

public theOrdersPromotionDiscountShouldBe ( $promotionDiscount )

theOrdersPromotionTotalShouldBe() public méthode

public theOrdersPromotionTotalShouldBe ( $promotionTotal )

theOrdersShippingChargesShouldBe() public méthode

public theOrdersShippingChargesShouldBe ( $shippingCharge )

theOrdersShippingTotalShouldBe() public méthode

public theOrdersShippingTotalShouldBe ( $shippingTotal )

theOrdersTaxTotalShouldBe() public méthode

public theOrdersTaxTotalShouldBe ( $taxTotal )

theOrdersTotalShouldBe() public méthode

public theOrdersTotalShouldBe ( $total )

theProductShouldBeInTheItemsList() public méthode

public theProductShouldBeInTheItemsList ( $productName )

thisOrderShipmentStateShouldBe() public méthode

public thisOrderShipmentStateShouldBe ( $shippingState )