|
6 | 6 |
|
7 | 7 | namespace Magento\Setup\Test\Unit\Model;
|
8 | 8 |
|
9 |
| -use Magento\Backend\Setup\ConfigOptionsList as BackendConfigOptionsList; |
10 |
| -use Magento\Framework\Config\ConfigOptionsListConstants as SetupConfigOptionsList; |
| 9 | +use Magento\Backend\Setup\ConfigOptionsList; |
| 10 | +use Magento\Framework\Config\ConfigOptionsListConstants; |
11 | 11 | use \Magento\Setup\Model\Installer;
|
12 | 12 | use Magento\Framework\App\Filesystem\DirectoryList;
|
13 | 13 | use Magento\Framework\Filesystem\DriverPool;
|
@@ -137,10 +137,10 @@ class InstallerTest extends \PHPUnit_Framework_TestCase
|
137 | 137 | * @var array
|
138 | 138 | */
|
139 | 139 | private static $dbConfig = [
|
140 |
| - SetupConfigOptionsList::KEY_HOST => '127.0.0.1', |
141 |
| - SetupConfigOptionsList::KEY_NAME => 'magento', |
142 |
| - SetupConfigOptionsList::KEY_USER => 'magento', |
143 |
| - SetupConfigOptionsList::KEY_PASSWORD => '', |
| 140 | + ConfigOptionsListConstants::KEY_HOST => '127.0.0.1', |
| 141 | + ConfigOptionsListConstants::KEY_NAME => 'magento', |
| 142 | + ConfigOptionsListConstants::KEY_USER => 'magento', |
| 143 | + ConfigOptionsListConstants::KEY_PASSWORD => '', |
144 | 144 | ];
|
145 | 145 |
|
146 | 146 | /**
|
@@ -227,11 +227,11 @@ private function createObject($connectionFactory = false, $objectManagerProvider
|
227 | 227 | public function testInstall()
|
228 | 228 | {
|
229 | 229 | $request = [
|
230 |
| - SetupConfigOptionsList::INPUT_KEY_DB_HOST => '127.0.0.1', |
231 |
| - SetupConfigOptionsList::INPUT_KEY_DB_NAME => 'magento', |
232 |
| - SetupConfigOptionsList::INPUT_KEY_DB_USER => 'magento', |
233 |
| - SetupConfigOptionsList::INPUT_KEY_ENCRYPTION_KEY => 'encryption_key', |
234 |
| - BackendConfigOptionsList::INPUT_KEY_BACKEND_FRONTNAME => 'backend', |
| 230 | + ConfigOptionsListConstants::INPUT_KEY_DB_HOST => '127.0.0.1', |
| 231 | + ConfigOptionsListConstants::INPUT_KEY_DB_NAME => 'magento', |
| 232 | + ConfigOptionsListConstants::INPUT_KEY_DB_USER => 'magento', |
| 233 | + ConfigOptionsListConstants::INPUT_KEY_ENCRYPTION_KEY => 'encryption_key', |
| 234 | + ConfigOptionsList::INPUT_KEY_BACKEND_FRONTNAME => 'backend', |
235 | 235 | ];
|
236 | 236 | $this->config->expects($this->atLeastOnce())->method('isAvailable')->willReturn(true);
|
237 | 237 | $allModules = ['Foo_One' => [], 'Bar_Two' => []];
|
@@ -436,7 +436,7 @@ public function testCleanupDb()
|
436 | 436 | $this->config->expects($this->once())->method('isAvailable')->willReturn(true);
|
437 | 437 | $this->config->expects($this->once())
|
438 | 438 | ->method('get')
|
439 |
| - ->with(SetupConfigOptionsList::CONFIG_PATH_DB_CONNECTION_DEFAULT) |
| 439 | + ->with(ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTION_DEFAULT) |
440 | 440 | ->willReturn(self::$dbConfig);
|
441 | 441 | $this->connection->expects($this->at(0))->method('quoteIdentifier')->with('magento')->willReturn('`magento`');
|
442 | 442 | $this->connection->expects($this->at(1))->method('query')->with('DROP DATABASE IF EXISTS `magento`');
|
|
0 commit comments