Sylius\Behat\Context\Setup\AddressContext::addAddressToCustomer PHP Method

addAddressToCustomer() private method

private addAddressToCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )
$customer Sylius\Component\Core\Model\CustomerInterface
$address Sylius\Component\Core\Model\AddressInterface
    private function addAddressToCustomer(CustomerInterface $customer, AddressInterface $address)
    {
        $customer->addAddress($address);
        $this->customerManager->flush();
    }