objectManager = Bootstrap::getObjectManager(); } public function testVerifyConfiguration() { /** @var Adapter $paymentAdapter */ $paymentAdapter = $this->objectManager->get('AuthorizenetAcceptjsFacade'); $this->assertEquals('authorizenet_acceptjs', $paymentAdapter->getCode()); $this->assertTrue($paymentAdapter->canAuthorize()); $this->assertTrue($paymentAdapter->canCapture()); $this->assertFalse($paymentAdapter->canCapturePartial()); $this->assertTrue($paymentAdapter->canRefund()); $this->assertTrue($paymentAdapter->canUseCheckout()); $this->assertTrue($paymentAdapter->canVoid()); $this->assertTrue($paymentAdapter->canUseInternal()); $this->assertTrue($paymentAdapter->canEdit()); $this->assertTrue($paymentAdapter->canFetchTransactionInfo()); /** @var Data $configReader */ $configReader = $this->objectManager->get('Magento\Payment\Model\Config\Data'); $value = $configReader->get('methods/authorizenet_acceptjs/allow_multiple_address'); $this->assertSame('0', $value); } }