diff --git a/app/code/Magento/Paypal/Model/Config/StructurePlugin.php b/app/code/Magento/Paypal/Model/Config/StructurePlugin.php index fb568c2d6ecb37cf76888d36028b8f7faddbe7e4..54573cb247a2a5ef9d3079af1a66c71639a43060 100644 --- a/app/code/Magento/Paypal/Model/Config/StructurePlugin.php +++ b/app/code/Magento/Paypal/Model/Config/StructurePlugin.php @@ -142,6 +142,6 @@ class StructurePlugin $sectionInitialStructure = isset($sectionData['children']) ? $sectionData['children'] : []; $sectionChangedStructure = $this->paymentSectionModifier->modify($sectionInitialStructure); $sectionData['children'] = $sectionChangedStructure; - $result->setData($sectionData, $this->_scopeDefiner->getScope()); + $result->setData($sectionData, $this->scopeDefiner->getScope()); } } diff --git a/app/code/Magento/Paypal/Test/Unit/Model/Config/Structure/PaymentSectionModifierTest.php b/app/code/Magento/Paypal/Test/Unit/Model/Config/Structure/PaymentSectionModifierTest.php index c321fdd5d5baf92cda2416c65dc9522151723e94..f2b5caf909327461c1ff9821b33a5ae23e538556 100644 --- a/app/code/Magento/Paypal/Test/Unit/Model/Config/Structure/PaymentSectionModifierTest.php +++ b/app/code/Magento/Paypal/Test/Unit/Model/Config/Structure/PaymentSectionModifierTest.php @@ -177,6 +177,6 @@ class PaymentSectionModifierTest extends \PHPUnit_Framework_TestCase public function caseProvider() { - return __DIR__ . '/_files/payment_section_structure_variations.php'; + return include __DIR__ . '/_files/payment_section_structure_variations.php'; } }