public function testIsBillingAddressEnabled()
 {
     $isEnabled = 1;
     $prefix = 'payment/braintree_paypal/';
     $this->scopeConfigMock->expects($this->once())->method('getValue')->with($prefix . PayPal::KEY_REQUIRE_BILLING_ADDRESS, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, null)->willReturn($isEnabled);
     $this->assertEquals(true, $this->model->isBillingAddressEnabled());
 }
Beispiel #2
0
 /**
  * @return bool
  */
 public function enableBillingAddress()
 {
     return $this->paypalConfig->isBillingAddressEnabled();
 }