Skip to content

Commit 5f90041

Browse files
committed
MAGETWO-34528: Contribution of Sprint 24 Work to Mainline
- fixing references to moved class.
1 parent 9cec069 commit 5f90041

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

app/code/Magento/Webapi/Model/Plugin/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use Magento\Integration\Model\ConfigBasedIntegrationManager;
99
use Magento\Integration\Service\V1\AuthorizationServiceInterface as IntegrationAuthorizationInterface;
10-
use Magento\Webapi\Model\IntegrationConfig;
10+
use Magento\Integration\Model\IntegrationConfig;
1111

1212
/**
1313
* Plugin for ConfigBasedIntegrationManager model to manage resource permissions of

dev/tests/unit/testsuite/Magento/Webapi/Model/Plugin/ManagerTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ManagerTest extends \PHPUnit_Framework_TestCase
1212
/**
1313
* API Integration config
1414
*
15-
* @var \Magento\Webapi\Model\IntegrationConfig|\PHPUnit_Framework_MockObject_MockObject
15+
* @var \Magento\Integration\Model\IntegrationConfig|\PHPUnit_Framework_MockObject_MockObject
1616
*/
1717
protected $integrationConfigMock;
1818

@@ -45,7 +45,7 @@ class ManagerTest extends \PHPUnit_Framework_TestCase
4545
public function setUp()
4646
{
4747
$this->integrationConfigMock = $this->getMockBuilder(
48-
'\Magento\Webapi\Model\IntegrationConfig'
48+
'\Magento\Integration\Model\IntegrationConfig'
4949
)->disableOriginalConstructor()->setMethods(
5050
['getIntegrations']
5151
)->getMock();
@@ -62,7 +62,13 @@ public function setUp()
6262
['grantPermissions']
6363
)->getMock();
6464

65-
$this->subjectMock = $this->getMock('Magento\Integration\Model\ConfigBasedIntegrationManager', [], [], '', false);
65+
$this->subjectMock = $this->getMock(
66+
'Magento\Integration\Model\ConfigBasedIntegrationManager',
67+
[],
68+
[],
69+
'',
70+
false
71+
);
6672
$this->apiSetupPlugin = new \Magento\Webapi\Model\Plugin\Manager(
6773
$this->integrationConfigMock,
6874
$this->integrationAuthorizationServiceMock,

0 commit comments

Comments
 (0)