当前位置: 首页>>代码示例>>PHP>>正文


PHP Page\SymfonyPage类代码示例

本文整理汇总了PHP中Sylius\Behat\Page\SymfonyPage的典型用法代码示例。如果您正苦于以下问题:PHP SymfonyPage类的具体用法?PHP SymfonyPage怎么用?PHP SymfonyPage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SymfonyPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getUrl

 /**
  * {@inheritdoc}
  */
 protected function getUrl(array $urlParameters = [])
 {
     if (!isset($urlParameters['number'])) {
         throw new \InvalidArgumentException(sprintf('This page %s requires order number to be passed as parameter', self::class));
     }
     return parent::getUrl($urlParameters);
 }
开发者ID:Mozan,项目名称:Sylius,代码行数:10,代码来源:OrderPaymentsPage.php

示例2: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['apply_coupon_button' => 'button:contains("Apply coupon")', 'cart_items' => '#sylius-cart-items', 'cart_total' => '#sylius-cart-button', 'clear_button' => '#sylius-cart-clear', 'coupon_field' => '#sylius_cart_promotionCoupon', 'grand_total' => '#sylius-cart-grand-total', 'product_discounted_total' => '#sylius-cart-items tr:contains("%name%") .sylius-discounted-total', 'product_row' => '#sylius-cart-items tbody tr:contains("%name%")', 'product_total' => '#sylius-cart-items tr:contains("%name%") .sylius-total', 'product_unit_price' => '#sylius-cart-items tr:contains("%name%") .sylius-unit-price', 'product_unit_regular_price' => '#sylius-cart-items tr:contains("%name%") .sylius-regular-unit-price', 'promotion_total' => '#sylius-cart-promotion-total', 'save_button' => '#sylius-save', 'shipping_total' => '#sylius-cart-shipping-total', 'tax_total' => '#sylius-cart-tax-total', 'update_button' => '#sylius-cart-update', 'validation_errors' => '.sylius-validation-error']);
 }
开发者ID:origammi,项目名称:Sylius,代码行数:7,代码来源:SummaryPage.php

示例3: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['addresses' => '#sylius-addresses', 'default_address' => '#sylius-default-address']);
 }
开发者ID:loic425,项目名称:Sylius,代码行数:7,代码来源:IndexPage.php

示例4: __construct

 /**
  * @param Session $session
  * @param array $parameters
  * @param RouterInterface $router
  * @param string $resourceName
  */
 public function __construct(Session $session, array $parameters, RouterInterface $router, $resourceName)
 {
     parent::__construct($session, $parameters, $router);
     $this->resourceName = strtolower($resourceName);
 }
开发者ID:Mozan,项目名称:Sylius,代码行数:11,代码来源:CreatePage.php

示例5: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['addressing_step_label' => '.steps a:contains("Address")', 'billing_address' => '#billing-address', 'extra_notes' => '#sylius_checkout_complete_notes', 'items_table' => '#sylius-order', 'currency' => '#currency', 'locale' => '#locale', 'order_total' => 'td:contains("Total")', 'payment_method' => '#payment-method', 'payment_step_label' => '.steps a:contains("Payment")', 'product_row' => 'tbody tr:contains("%name%")', 'promotion_discounts' => '#promotion-discounts', 'promotion_total' => '#promotion-total', 'shipping_address' => '#shipping-address', 'shipping_method' => '#shipping-method', 'shipping_step_label' => '.steps a:contains("Shipping")', 'shipping_total' => '#shipping-total', 'tax_total' => '#tax-total', 'validation_errors' => '.sylius-validation-error']);
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:CompletePage.php

示例6: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['validation_error' => '.message.error']);
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:LoginPage.php

示例7: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['city' => '#sylius_address_city', 'country' => '#sylius_address_countryCode', 'first_name' => '#sylius_address_firstName', 'last_name' => '#sylius_address_lastName', 'postcode' => '#sylius_address_postcode', 'province_name' => 'input[name="sylius_address[provinceName]"]', 'province_code' => 'select[name="sylius_address[provinceCode]"]', 'save_button' => 'button:contains("Save changes")', 'selected_province' => 'select[name="sylius_address[provinceCode]"] option[selected="selected"]', 'street' => '#sylius_address_street']);
 }
开发者ID:NeverResponse,项目名称:Sylius,代码行数:7,代码来源:UpdatePage.php

示例8: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['billing_address' => '#billingAddress address', 'customer_email' => '#info .content.extra > a', 'customer_name' => '#info .content > a', 'delete_account_button' => '#actions', 'no_account' => '#no-account', 'registration_date' => '#info .content .date', 'shipping_address' => '#shippingAddress address', 'subscribed_to_newsletter' => '#subscribed-to-newsletter']);
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:ShowPage.php

示例9: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['amount' => '#sylius_promotion_coupon_generate_instruction_amount', 'usage_limit' => '#sylius_promotion_coupon_generate_instruction_usageLimit', 'expires_at' => '#sylius_promotion_coupon_generate_instruction_expiresAt', 'code_length' => '#sylius_promotion_coupon_generate_instruction_codeLength', 'form' => '.two.column.stackable.grid']);
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:GeneratePage.php

示例10: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['billing_address' => '#billing-address', 'currency' => '#sylius-order-currency', 'customer' => '#customer', 'ip_address' => '#ipAddress', 'items_total' => '#items-total', 'order_notes' => '#sylius-order-notes', 'order_payment_state' => '#payment-state > span', 'order_state' => '#sylius-order-state', 'payments' => '#sylius-payments', 'promotion_discounts' => '#promotion-discounts', 'promotion_total' => '#promotion-total', 'shipments' => '#sylius-shipments', 'shipping_address' => '#shipping-address', 'shipping_charges' => '#shipping-charges', 'shipping_total' => '#shipping-total', 'table' => '.table', 'tax_total' => '#tax-total', 'taxes' => '#taxes', 'total' => '#total']);
 }
开发者ID:sylius,项目名称:sylius,代码行数:7,代码来源:ShowPage.php

示例11: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['code' => '#sylius_product_generate_variants_variants_%position%_code', 'price' => '#sylius_product_generate_variants_variants_%position%_channelPricings [data-form-collection="item"]:contains("%channel%") input', 'prices_validation_message' => '#sylius_product_generate_variants_variants_%position%_channelPricings ~ .sylius-validation-error']);
 }
开发者ID:sylius,项目名称:sylius,代码行数:7,代码来源:GeneratePage.php

示例12: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['billing_address' => '#billing-address', 'number' => '#number', 'order_items' => '#sylius-customer-order-items', 'shipping_address' => '#shipping-address', 'subtotal' => '#subtotal', 'total' => '#total']);
 }
开发者ID:okwinza,项目名称:Sylius,代码行数:7,代码来源:ShowPage.php

示例13: __construct

 /**
  * {@inheritdoc}
  *
  * @param TableManipulatorInterface $tableManipulator
  */
 public function __construct(Session $session, array $parameters, RouterInterface $router, TableManipulatorInterface $tableManipulator)
 {
     parent::__construct($session, $parameters, $router);
     $this->tableManipulator = $tableManipulator;
 }
开发者ID:Mozan,项目名称:Sylius,代码行数:10,代码来源:IndexPage.php

示例14: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['currency_selector' => '#sylius-currency-selector', 'locale_selector' => '#sylius-locale-selector', 'logout_button' => '.sylius-logout-button', 'full_name' => '.right.menu .item']);
 }
开发者ID:Niiko,项目名称:Sylius,代码行数:7,代码来源:HomePage.php

示例15: getDefinedElements

 /**
  * {@inheritdoc}
  */
 protected function getDefinedElements()
 {
     return array_merge(parent::getDefinedElements(), ['addressing_step_label' => '.steps a:contains("Addressing")', 'billing_address' => '#addresses div:contains("Billing address") address', 'extra_notes' => '#sylius_checkout_summary_notes', 'items_table' => '#items table', 'order_total' => 'td:contains("Total")', 'payment_method' => '#sylius-checkout-summary-payment-method', 'payment_step_label' => '.steps a:contains("Payment")', 'product_row' => 'tbody tr:contains("%name%")', 'promotion_discounts' => '#promotion-discounts', 'promotion_total' => '#promotion-total', 'shipping_address' => '#addresses div:contains("Shipping address") address', 'shipping_method' => '#sylius-checkout-summary-shipping-method', 'shipping_step_label' => '.steps a:contains("Shipping")', 'shipping_total' => '#shipping-total', 'tax_total' => '#tax-total']);
 }
开发者ID:remyma,项目名称:Sylius,代码行数:7,代码来源:SummaryPage.php


注:本文中的Sylius\Behat\Page\SymfonyPage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。