PHP Класс Sylius\Behat\Context\Ui\Admin\ManagingOrdersContext

Автор: Paweł Jędrzejewski ([email protected])
Автор: Grzegorz Sadowski ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
assertElementValidationMessage ( string $type, string $element, string $expectedMessage )

Описание методов

__construct() публичный Метод

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 iBrowseOrders ( )

iCancelThisOrder() публичный Метод

public iCancelThisOrder ( )

iCheckData() публичный Метод

public iCheckData ( $itemName )

iDoNotSpecifyNewInformation() публичный Метод

iMarkThisOrderAsAPaid() публичный Метод

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

iMarkThisOrderSPaymentAsRefunded() публичный Метод

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

iSaveMyChanges() публичный Метод

public iSaveMyChanges ( )

iSeeTheOrder() публичный Метод

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

iShipThisOrder() публичный Метод

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

iShouldBeNotifiedAboutItHasBeenSuccessfullyCanceled() публичный Метод

iShouldBeNotifiedThatTheAndTheInShippingDetailsAreRequired() публичный Метод

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

iShouldBeNotifiedThatTheOrderHasBeenSuccessfullyShipped() публичный Метод

iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyCompleted() публичный Метод

iShouldBeNotifiedThatTheOrderSPaymentHasBeenSuccessfullyRefunded() публичный Метод

iShouldNotBeAbleToCancelThisOrder() публичный Метод

iShouldNotBeAbleToFinalizeItsPayment() публичный Метод

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

iShouldNotBeAbleToShipThisOrder() публичный Метод

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

iShouldSeeASingleOrderFromCustomer() публичный Метод

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

iShouldSeeAdProvinceInTheBillingAddress() публичный Метод

public iShouldSeeAdProvinceInTheBillingAddress ( $provinceName )

iShouldSeeAsProvinceInTheShippingAddress() публичный Метод

public iShouldSeeAsProvinceInTheShippingAddress ( $provinceName )

iShouldSeeOrderWithNumber() публичный Метод

public iShouldSeeOrderWithNumber ( $orderNumber )

iShouldSeeTheOrderWithTotal() публичный Метод

public iShouldSeeTheOrderWithTotal ( $orderNumber, $total )

iSpecifyTheBillingAddressAs() публичный Метод

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

iSpecifyTheShippingAddressAs() публичный Метод

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

iSpecifyTheirBillingAddressAsFor() публичный Метод

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

iSpecifyTheirShippingAddressAsFor() публичный Метод

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

iSwitchSortingBy() публичный Метод

public iSwitchSortingBy ( $fieldName )

iWantToModifyACustomerSShippingAddress() публичный Метод

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

itShouldBeBilledTo() публичный Метод

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

itShouldBePaidWith() публичный Метод

public itShouldBePaidWith ( $paymentMethodName )

itShouldBePlacedByCustomer() публичный Метод

public itShouldBePlacedByCustomer ( $customerEmail )

itShouldBeShippedTo() публичный Метод

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

itShouldBeShippedViaShippingMethod() публичный Метод

public itShouldBeShippedViaShippingMethod ( $shippingMethodName )

itShouldHaveAmountOfItems() публичный Метод

public itShouldHaveAmountOfItems ( $amount )

itShouldHavePaymentState() публичный Метод

public itShouldHavePaymentState ( $paymentState )

itShouldHaveShipmentState() публичный Метод

public itShouldHaveShipmentState ( $shipmentState )

itShouldHaveState() публичный Метод

public itShouldHaveState ( $state )

itemCodeShouldBe() публичный Метод

public itemCodeShouldBe ( $itemName, $code )

itemDiscountedUnitPriceShouldBe() публичный Метод

public itemDiscountedUnitPriceShouldBe ( $itemName, $discountedUnitPrice )

itemQuantityShouldBe() публичный Метод

public itemQuantityShouldBe ( $itemName, $quantity )

itemSubtotalShouldBe() публичный Метод

public itemSubtotalShouldBe ( $itemName, $subtotal )

itemTaxShouldBe() публичный Метод

public itemTaxShouldBe ( $itemName, $tax )

itemTotalShouldBe() публичный Метод

public itemTotalShouldBe ( $itemName, $total )

itemUnitPriceShouldBe() публичный Метод

public itemUnitPriceShouldBe ( $itemName, $unitPrice )

itsStateShouldBe() публичный Метод

public itsStateShouldBe ( $state )

orderPaymentStateShouldBeRefunded() публичный Метод

specifyItsTrackingCodeAs() публичный Метод

public specifyItsTrackingCodeAs ( $trackingCode )

theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy() публичный Метод

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 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 theAdministratorShouldSeeTheOrderWithTotalInOrderList ( Sylius\Component\Core\Model\AdminUserInterface $user, $total )
$user Sylius\Component\Core\Model\AdminUserInterface

theCustomerServiceShouldKnowAboutThisAdditionalNotes() публичный Метод

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 theFirstOrderShouldHaveNumber ( $number )

theItemShouldHaveDiscount() публичный Метод

public theItemShouldHaveDiscount ( $itemName, $discount )

theOrderShouldHaveNumberOfPayments() публичный Метод

theOrderShouldHavePaymentState() публичный Метод

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

theOrderShouldHaveShipmentState() публичный Метод

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

theOrderShouldHaveTax() публичный Метод

public theOrderShouldHaveTax ( $tax )

theOrdersItemsTotalShouldBe() публичный Метод

public theOrdersItemsTotalShouldBe ( $itemsTotal )

theOrdersPaymentShouldBe() публичный Метод

public theOrdersPaymentShouldBe ( $paymentAmount )

theOrdersPromotionDiscountShouldBe() публичный Метод

public theOrdersPromotionDiscountShouldBe ( $promotionDiscount )

theOrdersPromotionTotalShouldBe() публичный Метод

public theOrdersPromotionTotalShouldBe ( $promotionTotal )

theOrdersShippingChargesShouldBe() публичный Метод

public theOrdersShippingChargesShouldBe ( $shippingCharge )

theOrdersShippingTotalShouldBe() публичный Метод

public theOrdersShippingTotalShouldBe ( $shippingTotal )

theOrdersTaxTotalShouldBe() публичный Метод

public theOrdersTaxTotalShouldBe ( $taxTotal )

theOrdersTotalShouldBe() публичный Метод

public theOrdersTotalShouldBe ( $total )

theProductShouldBeInTheItemsList() публичный Метод

public theProductShouldBeInTheItemsList ( $productName )

thisOrderShipmentStateShouldBe() публичный Метод

public thisOrderShipmentStateShouldBe ( $shippingState )