Пример #1
0
 /**
  * @covers \Magento\Braintree\Model\Ui\ConfigProvider::getClientToken
  */
 public function testGetClientToken()
 {
     $this->braintreeAdapter->expects(static::once())->method('generate')->willReturn(self::CLIENT_TOKEN);
     static::assertEquals(self::CLIENT_TOKEN, $this->configProvider->getClientToken());
 }
Пример #2
0
 /**
  * @return string|null
  */
 public function getClientToken()
 {
     return $this->configProvider->getClientToken();
 }