Skip to content

Commit 45ce4e4

Browse files
committed
MAGETWO-44072: Contribute Bugfixes by Ogres
- fixing obsolete code test
1 parent bc09926 commit 45ce4e4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

setup/src/Magento/Setup/Test/Unit/Model/InstallerTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
namespace Magento\Setup\Test\Unit\Model;
88

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;
1111
use \Magento\Setup\Model\Installer;
1212
use Magento\Framework\App\Filesystem\DirectoryList;
1313
use Magento\Framework\Filesystem\DriverPool;
@@ -137,10 +137,10 @@ class InstallerTest extends \PHPUnit_Framework_TestCase
137137
* @var array
138138
*/
139139
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 => '',
144144
];
145145

146146
/**
@@ -227,11 +227,11 @@ private function createObject($connectionFactory = false, $objectManagerProvider
227227
public function testInstall()
228228
{
229229
$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',
235235
];
236236
$this->config->expects($this->atLeastOnce())->method('isAvailable')->willReturn(true);
237237
$allModules = ['Foo_One' => [], 'Bar_Two' => []];
@@ -436,7 +436,7 @@ public function testCleanupDb()
436436
$this->config->expects($this->once())->method('isAvailable')->willReturn(true);
437437
$this->config->expects($this->once())
438438
->method('get')
439-
->with(SetupConfigOptionsList::CONFIG_PATH_DB_CONNECTION_DEFAULT)
439+
->with(ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTION_DEFAULT)
440440
->willReturn(self::$dbConfig);
441441
$this->connection->expects($this->at(0))->method('quoteIdentifier')->with('magento')->willReturn('`magento`');
442442
$this->connection->expects($this->at(1))->method('query')->with('DROP DATABASE IF EXISTS `magento`');

0 commit comments

Comments
 (0)