コード例 #1
0
 function it_returns_the_lowest_price_if_more_than_1_group_provided_in_context(PriceableInterface $priceable, CustomerGroupInterface $group1, CustomerGroupInterface $group2)
 {
     $configuration = [42 => 4999, 17 => 4599, 95 => 4400];
     $context = ['groups' => [$group1, $group2]];
     $group1->getId()->shouldBeCalled()->willReturn(17);
     $group2->getId()->shouldBeCalled()->willReturn(95);
     $this->calculate($priceable, $configuration, $context)->shouldReturn(4400);
 }
コード例 #2
0
 /**
  * @When /^I want to edit (this customer group)$/
  * @When I want to edit the customer group :customerGroup
  */
 public function iWantToEditThisCustomerGroup(CustomerGroupInterface $customerGroup)
 {
     $this->updatePage->open(['id' => $customerGroup->getId()]);
 }