File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
dev/tests/integration/testsuite/Magento/Braintree/Model Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ interface PaymentMethodListInterface
16
16
{
17
17
/**
18
18
* Get list of available vault payments
19
- * @param $storeId
19
+ * @param int $storeId
20
20
* @return VaultPaymentInterface[]
21
21
*/
22
22
public function getList ($ storeId );
Original file line number Diff line number Diff line change @@ -73,6 +73,6 @@ function (MethodInterface $methodInstance) {
73
73
return $ methodInstance instanceof VaultPaymentInterface;
74
74
}
75
75
);
76
- return $ availableMethods ;
76
+ return array_values ( $ availableMethods) ;
77
77
}
78
78
}
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ protected function setUp()
37
37
}
38
38
39
39
/**
40
- * @covers \Magento\Vault\Api\PaymentMethodListInterface::getList
41
40
* @magentoDataFixture Magento/Braintree/_files/payments.php
42
41
*/
43
42
public function testGetList ()
@@ -58,7 +57,6 @@ public function testGetList()
58
57
}
59
58
60
59
/**
61
- * @covers \Magento\Vault\Api\PaymentMethodListInterface::getActiveList
62
60
* @magentoDataFixture Magento/Braintree/_files/payments.php
63
61
*/
64
62
public function testGetActiveList ()
@@ -67,6 +65,7 @@ public function testGetActiveList()
67
65
68
66
static ::assertNotEmpty ($ vaultPayments );
69
67
static ::assertCount (1 , $ vaultPayments );
70
- static ::assertEquals (PayPalConfigProvider::PAYPAL_VAULT_CODE , $ vaultPayments [0 ]->getCode ());
68
+ $ payment = array_pop ($ vaultPayments );
69
+ static ::assertEquals (PayPalConfigProvider::PAYPAL_VAULT_CODE , $ payment ->getCode ());
71
70
}
72
71
}
You can’t perform that action at this time.
0 commit comments