Skip to content

Commit b857740

Browse files
author
Sergii Kovalenko
committed
MAGETWO-87551: Convert existing data install/upgrade scripts
--fix L2
1 parent 2e2a0a5 commit b857740

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

setup/src/Magento/Setup/Test/Unit/Console/Command/UpgradeCommandTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function executeDataProvider()
104104
[
105105
'options' => [
106106
'--magento-init-params' => '',
107-
'--convert_old_scripts' => false
107+
'--convert_old_scripts' => false,
108108
],
109109
'deployMode' => \Magento\Framework\App\State::MODE_PRODUCTION,
110110
'expectedString' => 'Please re-run Magento compile command. Use the command "setup:di:compile"'
@@ -113,20 +113,24 @@ public function executeDataProvider()
113113
'keep-generated' => false,
114114
'convert_old_scripts' => false,
115115
'magento-init-params' => '',
116+
'safe-mode' => false,
117+
'data-restore' => false
116118
]
117119
],
118120
[
119121
'options' => [
120122
'--magento-init-params' => '',
121123
'--convert_old_scripts' => false,
122-
'--keep-generated' => true
124+
'--keep-generated' => true,
123125
],
124126
'deployMode' => \Magento\Framework\App\State::MODE_PRODUCTION,
125127
'expectedString' => '',
126128
'expectedOptions' => [
127129
'keep-generated' => true,
128130
'convert_old_scripts' => false,
129131
'magento-init-params' => '',
132+
'safe-mode' => false,
133+
'data-restore' => false
130134
]
131135
],
132136
[
@@ -137,6 +141,8 @@ public function executeDataProvider()
137141
'keep-generated' => false,
138142
'convert_old_scripts' => false,
139143
'magento-init-params' => '',
144+
'safe-mode' => false,
145+
'data-restore' => false
140146
]
141147
],
142148
[
@@ -147,6 +153,8 @@ public function executeDataProvider()
147153
'keep-generated' => false,
148154
'convert_old_scripts' => false,
149155
'magento-init-params' => '',
156+
'safe-mode' => false,
157+
'data-restore' => false
150158
]
151159
],
152160
];

setup/src/Magento/Setup/Test/Unit/Model/Declaration/Schema/OperationsExecutorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ protected function setUp()
108108
'create_table' => $this->createTableOperation,
109109
'drop_element' => $this->dropElement
110110
],
111+
'dataSaviorsCollection' => [],
111112
'sharding' => $this->shardingMock,
112113
'resourceConnection' => $this->resourceConnectionMock,
113114
'statementFactory' => $this->statementFactoryMock,
@@ -178,6 +179,6 @@ public function testExecute()
178179
->willReturn($tablesHistories);
179180
$this->dropElement->expects(self::at(0))
180181
->method('doOperation');
181-
$this->model->execute($diff);
182+
$this->model->execute($diff, []);
182183
}
183184
}

0 commit comments

Comments
 (0)