Skip to content

Commit 878f950

Browse files
MC-38765: Ensure there are no split db specific tests
- add back methods and mark them as deprecated
1 parent 0c01b2b commit 878f950

File tree

1 file changed

+48
-0
lines changed
  • dev/tests/setup-integration/framework/Magento/TestFramework/Deploy

1 file changed

+48
-0
lines changed

dev/tests/setup-integration/framework/Magento/TestFramework/Deploy/CliCommand.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,54 @@ public function disableModule($moduleName)
111111
return $this->shell->execute($disableModuleCommand);
112112
}
113113

114+
/**
115+
* Split quote db configuration.
116+
*
117+
* @return void
118+
* @throws LocalizedException
119+
* @deprecated split database solution is deprecated and will be removed
120+
*/
121+
public function splitQuote()
122+
{
123+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
124+
trigger_error('Method is deprecated', E_USER_DEPRECATED);
125+
126+
$initParams = $this->parametersHolder->getInitParams();
127+
$installParams = $this->toCliArguments(
128+
$this->parametersHolder->getDbData('checkout')
129+
);
130+
$command = $this->getCliScriptCommand() . ' setup:db-schema:split-quote ' .
131+
implode(" ", array_keys($installParams)) .
132+
' -vvv --no-interaction --magento-init-params="' .
133+
$initParams['magento-init-params'] . '"';
134+
135+
$this->shell->execute($command, array_values($installParams));
136+
}
137+
138+
/**
139+
* Split sales db configuration.
140+
*
141+
* @return void
142+
* @throws LocalizedException
143+
* @deprecated split database solution is deprecated and will be removed
144+
*/
145+
public function splitSales()
146+
{
147+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
148+
trigger_error('Method is deprecated', E_USER_DEPRECATED);
149+
150+
$initParams = $this->parametersHolder->getInitParams();
151+
$installParams = $this->toCliArguments(
152+
$this->parametersHolder->getDbData('sales')
153+
);
154+
$command = $this->getCliScriptCommand() . ' setup:db-schema:split-sales ' .
155+
implode(" ", array_keys($installParams)) .
156+
' -vvv --magento-init-params="' .
157+
$initParams['magento-init-params'] . '"';
158+
159+
$this->shell->execute($command, array_values($installParams));
160+
}
161+
114162
/**
115163
* Clean all types of cache
116164
*/

0 commit comments

Comments
 (0)