當前位置: 首頁>>代碼示例>>PHP>>正文


PHP OrderInterface::getNumber方法代碼示例

本文整理匯總了PHP中Sylius\Component\Core\Model\OrderInterface::getNumber方法的典型用法代碼示例。如果您正苦於以下問題:PHP OrderInterface::getNumber方法的具體用法?PHP OrderInterface::getNumber怎麽用?PHP OrderInterface::getNumber使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Sylius\Component\Core\Model\OrderInterface的用法示例。


在下文中一共展示了OrderInterface::getNumber方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: anEmailWithShipmentDetailsOfOrderShouldBeSentTo

 /**
  * @Then /^an email with shipment's details of (this order) should be sent to "([^"]+)"$/
  */
 public function anEmailWithShipmentDetailsOfOrderShouldBeSentTo(OrderInterface $order, $recipient)
 {
     $this->assertEmailContainsMessageTo($order->getNumber(), $recipient);
     $this->assertEmailContainsMessageTo($order->getLastShipment()->getMethod()->getName(), $recipient);
     $tracking = $this->sharedStorage->get('tracking_code');
     $this->assertEmailContainsMessageTo($tracking, $recipient);
 }
開發者ID:ReissClothing,項目名稱:Sylius,代碼行數:10,代碼來源:EmailContext.php

示例2: iViewTheSummaryOfTheOrder

 /**
  * @When I view the summary of the order :order
  * @When /^I am viewing the summary of (this order)$/
  */
 public function iViewTheSummaryOfTheOrder(OrderInterface $order)
 {
     $this->orderShowPage->open(['number' => $order->getNumber()]);
 }
開發者ID:Niiko,項目名稱:Sylius,代碼行數:8,代碼來源:AccountContext.php

示例3: orderShouldNotExistInTheRegistry

 /**
  * @Then /^(this order) should not exist in the registry$/
  */
 public function orderShouldNotExistInTheRegistry(OrderInterface $order)
 {
     $this->indexPage->open();
     Assert::false($this->indexPage->isSingleResourceOnPage(['number' => $order->getNumber()]), sprintf('Order with number %s exists but should not.', $order->getNumber()));
 }
開發者ID:okwinza,項目名稱:Sylius,代碼行數:8,代碼來源:ManagingOrdersContext.php

示例4: isItPossibleToChangePaymentMethodForOrder

 /**
  * {@inheritDoc}
  */
 public function isItPossibleToChangePaymentMethodForOrder(OrderInterface $order)
 {
     $row = $this->tableAccessor->getRowWithFields($this->getElement('customer_orders'), ['number' => $order->getNumber()]);
     return $row->hasLink('Pay');
 }
開發者ID:sylius,項目名稱:sylius,代碼行數:8,代碼來源:IndexPage.php

示例5:

 function it_throws_an_exception_if_order_still_exists(OrderRepositoryInterface $orderRepository, OrderInterface $order)
 {
     $order->getNumber()->willReturn('#00000000');
     $orderRepository->findOneBy(['number' => '#00000000'])->willReturn($order);
     $this->shouldThrow(NotEqualException::class)->during('orderShouldNotExistInTheRegistry', [$order]);
 }
開發者ID:ahmadrabie,項目名稱:Sylius,代碼行數:6,代碼來源:OrderContextSpec.php

示例6: thisOrderShouldHaveNumber

 /**
  * @Given this order should have :order number
  */
 public function thisOrderShouldHaveNumber(OrderInterface $order)
 {
     Assert::true($this->orderIndexPage->isOrderWithNumberInTheList($order->getNumber()), sprintf('Cannot find order with number "%s" in the list.', $order->getNumber()));
 }
開發者ID:polisys,項目名稱:Sylius,代碼行數:7,代碼來源:AccountContext.php


注:本文中的Sylius\Component\Core\Model\OrderInterface::getNumber方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。