Author: Michał Marcinkowski (michal.marcinkowski@lakion.com)
Inheritance: extends Sylius\Component\Resource\Model\TimestampableInterface, extends Sylius\Component\Resource\Model\ResourceInterface
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getUser()
 {
     if (null === $this->customer) {
         return null;
     }
     return $this->customer->getUser();
 }
 /**
  * @Then /^(this customer) should have "([^"]+)" as their group$/
  */
 public function thisCustomerShouldHaveAsTheirGroup(CustomerInterface $customer, $groupName)
 {
     $this->updatePage->open(['id' => $customer->getId()]);
     Assert::same($groupName, $this->updatePage->getGroupName(), sprintf('Customer should have %s as group, but it does not', $groupName));
 }
 /**
  * @When I view details of the customer :customer
  */
 public function iViewDetailsOfTheCustomer(CustomerInterface $customer)
 {
     $this->showPage->open(['id' => $customer->getId()]);
 }
Exemplo n.º 4
0
 /**
  * @When I change the password of user :customer to :newPassword
  */
 public function iChangeThePasswordOfUserTo(CustomerInterface $customer, $newPassword)
 {
     $this->updatePage->open(['id' => $customer->getId()]);
     $this->updatePage->changePassword($newPassword);
     $this->updatePage->saveChanges();
 }
 /**
  * @Given I am impersonating the customer :customer
  */
 public function iAmImpersonatingCustomer(CustomerInterface $customer)
 {
     $this->customerShowPage->open(['id' => $customer->getId()]);
     $this->customerShowPage->impersonate();
     $this->homePage->open();
 }