Skip to content

Commit 8e11bce

Browse files
committed
MAGETWO-84929: Default merchant account ID is used on subsequent partial invoices
- Added application isolation level for tests
1 parent 707fcfe commit 8e11bce

File tree

10 files changed

+55
-39
lines changed

10 files changed

+55
-39
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/CustomerMetadataTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\Framework\Exception\NoSuchEntityException;
1212
use Magento\TestFramework\Helper\CacheCleaner;
1313

14+
/**
15+
* @magentoAppIsolation enabled
16+
*/
1417
class CustomerMetadataTest extends \PHPUnit\Framework\TestCase
1518
{
1619
/** @var CustomerRepositoryInterface */

dev/tests/integration/testsuite/Magento/Customer/Model/CustomerRegistryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
/**
1515
* Test for \Magento\Customer\Model\CustomerRegistry
16+
* @magentoAppIsolation enabled
1617
*/
1718
class CustomerRegistryTest extends \PHPUnit\Framework\TestCase
1819
{

dev/tests/integration/testsuite/Magento/Customer/Model/GroupRegistryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* Test for \Magento\Customer\Model\GroupRegistry
11+
* @magentoAppIsolation enabled
1112
*/
1213
class GroupRegistryTest extends \PHPUnit\Framework\TestCase
1314
{

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/AddressRepositoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @SuppressWarnings(PHPMD.TooManyMethods)
2121
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2222
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
23+
* @magentoAppIsolation enabled
2324
*/
2425
class AddressRepositoryTest extends \PHPUnit\Framework\TestCase
2526
{

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/CustomerRepositoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Checks Customer insert, update, search with repository
1616
*
1717
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18+
* @magentoAppIsolation enabled
1819
*/
1920
class CustomerRepositoryTest extends \PHPUnit\Framework\TestCase
2021
{

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/Grid/CollectionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Customer grid collection tests.
15+
* @magentoAppIsolation enabled
1516
*/
1617
class CollectionTest extends \Magento\TestFramework\Indexer\TestCase
1718
{

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/GroupRepositoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* Integration test for \Magento\Customer\Model\ResourceModel\GroupRepository
14+
* @magentoAppIsolation enabled
1415
*/
1516
class GroupRepositoryTest extends \PHPUnit\Framework\TestCase
1617
{

dev/tests/integration/testsuite/Magento/Customer/Model/VisitorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\TestFramework\Helper\Bootstrap;
99

10+
/**
11+
* @magentoAppIsolation enabled
12+
*/
1013
class VisitorTest extends \PHPUnit\Framework\TestCase
1114
{
1215
/**

dev/tests/integration/testsuite/Magento/Eav/Model/Validator/Attribute/BackendTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
*/
1010
namespace Magento\Eav\Model\Validator\Attribute;
1111

12+
/**
13+
* @magentoAppIsolation enabled
14+
*/
1215
class BackendTest extends \PHPUnit\Framework\TestCase
1316
{
1417
/**

dev/tests/integration/testsuite/Magento/Framework/Api/ExtensionAttribute/JoinProcessorTest.php

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Class to test the JoinProcessor functionality
1818
*
1919
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20+
* @magentoAppIsolation enabled
2021
*/
2122
class JoinProcessorTest extends \PHPUnit\Framework\TestCase
2223
{
@@ -144,55 +145,55 @@ public function testProcess()
144145
private function getConfig()
145146
{
146147
return [\Magento\Catalog\Api\Data\ProductInterface::class => [
147-
'review_id' => [
148-
Converter::DATA_TYPE => 'string',
149-
Converter::RESOURCE_PERMISSIONS => [],
150-
Converter::JOIN_DIRECTIVE => [
151-
Converter::JOIN_REFERENCE_TABLE => "reviews",
152-
Converter::JOIN_REFERENCE_FIELD => "product_id",
153-
Converter::JOIN_FIELDS => [
154-
[
155-
Converter::JOIN_FIELD => "review_id",
156-
Converter::JOIN_FIELD_COLUMN => "db_review_id",
157-
],
148+
'review_id' => [
149+
Converter::DATA_TYPE => 'string',
150+
Converter::RESOURCE_PERMISSIONS => [],
151+
Converter::JOIN_DIRECTIVE => [
152+
Converter::JOIN_REFERENCE_TABLE => "reviews",
153+
Converter::JOIN_REFERENCE_FIELD => "product_id",
154+
Converter::JOIN_FIELDS => [
155+
[
156+
Converter::JOIN_FIELD => "review_id",
157+
Converter::JOIN_FIELD_COLUMN => "db_review_id",
158158
],
159-
Converter::JOIN_ON_FIELD => "id",
160159
],
160+
Converter::JOIN_ON_FIELD => "id",
161161
],
162-
], \Magento\Customer\Api\Data\CustomerInterface::class => [
163-
'library_card_id' => [
164-
Converter::DATA_TYPE => 'string',
165-
Converter::RESOURCE_PERMISSIONS => [],
166-
Converter::JOIN_DIRECTIVE => [
167-
Converter::JOIN_REFERENCE_TABLE => "library_account",
168-
Converter::JOIN_FIELDS => [
169-
[
170-
Converter::JOIN_FIELD => "library_card_id",
171-
Converter::JOIN_FIELD_COLUMN => "",
172-
],
162+
],
163+
], \Magento\Customer\Api\Data\CustomerInterface::class => [
164+
'library_card_id' => [
165+
Converter::DATA_TYPE => 'string',
166+
Converter::RESOURCE_PERMISSIONS => [],
167+
Converter::JOIN_DIRECTIVE => [
168+
Converter::JOIN_REFERENCE_TABLE => "library_account",
169+
Converter::JOIN_FIELDS => [
170+
[
171+
Converter::JOIN_FIELD => "library_card_id",
172+
Converter::JOIN_FIELD_COLUMN => "",
173173
],
174-
Converter::JOIN_ON_FIELD => "customer_id",
175174
],
175+
Converter::JOIN_ON_FIELD => "customer_id",
176176
],
177-
'reviews' => [
178-
Converter::DATA_TYPE => 'Magento\Reviews\Api\Data\Reviews[]',
179-
Converter::RESOURCE_PERMISSIONS => [],
180-
Converter::JOIN_DIRECTIVE => [
181-
Converter::JOIN_REFERENCE_TABLE => "reviews",
182-
Converter::JOIN_FIELDS => [
183-
[
184-
Converter::JOIN_FIELD => "comment",
185-
Converter::JOIN_FIELD_COLUMN => "",
186-
],
187-
[
188-
Converter::JOIN_FIELD => "rating",
189-
Converter::JOIN_FIELD_COLUMN => "",
190-
],
177+
],
178+
'reviews' => [
179+
Converter::DATA_TYPE => 'Magento\Reviews\Api\Data\Reviews[]',
180+
Converter::RESOURCE_PERMISSIONS => [],
181+
Converter::JOIN_DIRECTIVE => [
182+
Converter::JOIN_REFERENCE_TABLE => "reviews",
183+
Converter::JOIN_FIELDS => [
184+
[
185+
Converter::JOIN_FIELD => "comment",
186+
Converter::JOIN_FIELD_COLUMN => "",
187+
],
188+
[
189+
Converter::JOIN_FIELD => "rating",
190+
Converter::JOIN_FIELD_COLUMN => "",
191191
],
192-
Converter::JOIN_ON_FIELD => "customer_id",
193192
],
193+
Converter::JOIN_ON_FIELD => "customer_id",
194194
],
195195
],
196+
],
196197
];
197198
}
198199

0 commit comments

Comments
 (0)