Skip to content

Commit a892a34

Browse files
committed
MAGETWO-38686: Merge and Fix Builds
1 parent f623175 commit a892a34

File tree

3 files changed

+36
-29
lines changed

3 files changed

+36
-29
lines changed

dev/tests/api-functional/testsuite/Magento/Customer/Api/GroupRepositoryTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -863,46 +863,46 @@ private function createGroup($group)
863863
public function testSearchGroupsDataProvider()
864864
{
865865
return [
866-
['tax_class_id', '3', []],
867-
['tax_class_id', '0', null],
866+
['tax_class_id', 3, []],
867+
['tax_class_id', 0, null],
868868
['code', md5(mt_rand(0, 10000000000) . time()), null],
869869
[
870870
'id',
871-
'0',
871+
0,
872872
[
873-
'id' => '0',
873+
'id' => 0,
874874
'code' => 'NOT LOGGED IN',
875-
'tax_class_id' => '3',
875+
'tax_class_id' => 3,
876876
'tax_class_name' => 'Retail Customer'
877877
]
878878
],
879879
[
880880
'code',
881881
'General',
882882
[
883-
'id' => '1',
883+
'id' => 1,
884884
'code' => 'General',
885-
'tax_class_id' => '3',
885+
'tax_class_id' => 3,
886886
'tax_class_name' => 'Retail Customer'
887887
]
888888
],
889889
[
890890
'id',
891-
'2',
891+
2,
892892
[
893-
'id' => '2',
893+
'id' => 2,
894894
'code' => 'Wholesale',
895-
'tax_class_id' => '3',
895+
'tax_class_id' => 3,
896896
'tax_class_name' => 'Retail Customer'
897897
]
898898
],
899899
[
900900
'code',
901901
'Retailer',
902902
[
903-
'id' => '3',
903+
'id' => 3,
904904
'code' => 'Retailer',
905-
'tax_class_id' => '3',
905+
'tax_class_id' => 3,
906906
'tax_class_name' => 'Retail Customer'
907907
]
908908
]

dev/tests/integration/framework/Magento/TestFramework/Application.php

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,10 @@ public function isInstalled()
267267
* Initialize application
268268
*
269269
* @param array $overriddenParams
270+
* @param bool $loadTestExtensionAttributes
270271
* @return void
271272
*/
272-
public function initialize($overriddenParams = [])
273+
public function initialize($overriddenParams = [], $loadTestExtensionAttributes = false)
273274
{
274275
$overriddenParams[\Magento\Framework\App\State::PARAM_MODE] = $this->_appMode;
275276
$overriddenParams = $this->_customizeParams($overriddenParams);
@@ -323,21 +324,27 @@ public function initialize($overriddenParams = [])
323324

324325
Helper\Bootstrap::setObjectManager($objectManager);
325326

326-
$objectManager->configure(
327-
[
328-
'preferences' => [
329-
'Magento\Framework\App\State' => 'Magento\TestFramework\App\State',
330-
'Magento\Framework\Mail\TransportInterface' => 'Magento\TestFramework\Mail\TransportInterfaceMock',
331-
'Magento\Framework\Mail\Template\TransportBuilder'
332-
=> 'Magento\TestFramework\Mail\Template\TransportBuilderMock',
333-
],
334-
'Magento\Framework\Api\ExtensionAttribute\Config\Reader' => [
335-
'arguments' => [
336-
'fileResolver' => ['instance' => 'Magento\TestFramework\Api\Config\Reader\FileResolver'],
337-
],
338-
],
327+
$objectManagerConfiguration = [
328+
'preferences' => [
329+
'Magento\Framework\App\State' => 'Magento\TestFramework\App\State',
330+
'Magento\Framework\Mail\TransportInterface' => 'Magento\TestFramework\Mail\TransportInterfaceMock',
331+
'Magento\Framework\Mail\Template\TransportBuilder'
332+
=> 'Magento\TestFramework\Mail\Template\TransportBuilderMock',
339333
]
340-
);
334+
];
335+
if ($loadTestExtensionAttributes) {
336+
array_merge(
337+
$objectManagerConfiguration,
338+
[
339+
'Magento\Framework\Api\ExtensionAttribute\Config\Reader' => [
340+
'arguments' => [
341+
'fileResolver' => ['instance' => 'Magento\TestFramework\Api\Config\Reader\FileResolver'],
342+
],
343+
],
344+
]
345+
);
346+
}
347+
$objectManager->configure($objectManagerConfiguration);
341348

342349
/** Register event observer of Integration Framework */
343350
/** @var \Magento\Framework\Event\Config\Data $eventConfigData */
@@ -375,7 +382,7 @@ public function initialize($overriddenParams = [])
375382
public function reinitialize(array $overriddenParams = [])
376383
{
377384
$this->_resetApp();
378-
$this->initialize($overriddenParams);
385+
$this->initialize($overriddenParams, true);
379386
}
380387

381388
/**

dev/tests/integration/framework/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
if (!$application->isInstalled()) {
7272
$application->install();
7373
}
74-
$application->initialize();
74+
$application->initialize([], true);
7575

7676
\Magento\TestFramework\Helper\Bootstrap::setInstance(new \Magento\TestFramework\Helper\Bootstrap($bootstrap));
7777

0 commit comments

Comments
 (0)