當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。