Skip to content

Commit 1ae920b

Browse files
author
Joan He
committed
MAGETWO-32624: Investigate and Annotate @api to classes and/or methods
- fixed unit test failures
1 parent 94b0c43 commit 1ae920b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Config/Model/Config/ScopeDefiner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public function getScope()
3939
'store'
4040
) ? StoreScopeInterface::SCOPE_STORE : ($this->_request->getParam(
4141
'website'
42-
) ? StoreScopeInterface::SCOPE_WEBSITE : StoreScopeInterface::SCOPE_DEFAULT);
42+
) ? StoreScopeInterface::SCOPE_WEBSITE : ScopeConfigInterface::SCOPE_TYPE_DEFAULT);
4343
}
4444
}

app/code/Magento/Sales/Test/Unit/Model/Config/Backend/Email/AsyncSendingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function setUp()
6363
public function testAfterSave($value, $oldValue, $eventName)
6464
{
6565
$path = 'sales_email/general/async_sending';
66-
$scope = \Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT;
66+
$scope = \Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT;
6767

6868
$this->object->setData(['value' => $value, 'path' => $path, 'scope' => $scope]);
6969

app/code/Magento/Sales/Test/Unit/Model/Config/Backend/Grid/AsyncIndexingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function setUp()
6363
public function testAfterSave($value, $oldValue, $eventName)
6464
{
6565
$path = 'dev/grid/async_indexing';
66-
$scope = \Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT;
66+
$scope = \Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT;
6767

6868
$this->object->setData(['value' => $value, 'path' => $path, 'scope' => $scope]);
6969

0 commit comments

Comments
 (0)