Skip to content

Commit c384b27

Browse files
committed
MC-13775: [2.2.x] Accept.js for Auth.net
- Fix static tests
1 parent eee7efd commit c384b27

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/code/Magento/AuthorizenetAcceptjs/Block/Payment.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ class Payment extends Template
3131
*/
3232
private $json;
3333

34-
/**
35-
* @var string
36-
*/
37-
private static $methodCode = 'authorizenet_acceptjs';
38-
3934
/**
4035
* @param Context $context
4136
* @param ConfigProviderInterface $config
@@ -74,6 +69,6 @@ public function getPaymentConfig(): string
7469
*/
7570
public function getMethodCode(): string
7671
{
77-
return self::$methodCode;
72+
return 'authorizenet_acceptjs';
7873
}
7974
}

dev/tests/static/testsuite/Magento/Test/Integrity/DependencyTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ public function collectRedundant()
408408
{
409409
foreach (array_keys(self::$mapDependencies) as $module) {
410410
$declared = $this->_getDependencies($module, self::TYPE_HARD, self::MAP_TYPE_DECLARED);
411-
$found = $this->_getDependencies($module, self::TYPE_HARD, self::MAP_TYPE_FOUND);
411+
$found = array_merge(
412+
$this->_getDependencies($module, self::TYPE_HARD, self::MAP_TYPE_FOUND),
413+
$this->_getDependencies($module, self::TYPE_SOFT, self::MAP_TYPE_FOUND)
414+
);
412415
$found['Magento\Framework'] = 'Magento\Framework';
413416
$this->_setDependencies($module, self::TYPE_HARD, self::MAP_TYPE_REDUNDANT, array_diff($declared, $found));
414417
}

0 commit comments

Comments
 (0)