Skip to content

Commit a26f0b5

Browse files
author
Sergii Kovalenko
committed
MAGETWO-87190: Test coverage for critical logic
1 parent b3989d8 commit a26f0b5

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule1/registration.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@
66

77
use Magento\Framework\Component\ComponentRegistrar;
88

9-
$registrar = new ComponentRegistrar();
10-
if ($registrar->getPath(ComponentRegistrar::MODULE, 'Magento_TestSetupDeclarationModule1') === null) {
11-
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_TestSetupDeclarationModule1', __DIR__);
12-
}
9+
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_TestSetupDeclarationModule1', __DIR__);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function updateRevision($moduleName, $revisionName, $fileName, $fileDir)
7878

7979
if (file_exists($oldFile) && file_exists($revisionFile)) {
8080
unlink($oldFile);
81-
rename($revisionFile, $oldFile);
81+
copy($revisionFile, $oldFile);
8282
} else {
8383
throw new \InvalidArgumentException("Old File or revision files paths are invalid");
8484
}

dev/tests/setup-integration/framework/bootstrap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@
7575
);
7676
$bootstrap->runBootstrap();
7777
$application->createInstallDir();
78-
//remove test modules files
79-
include_once __DIR__ . '/../../setup-integration/framework/removeTestModules.php';
8078
//We do not want to install anything
8179
$application->initialize([]);
8280

setup/src/Magento/Setup/Model/Declaration/Schema/Declaration/ReaderComposite.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ public function read($scope = null)
4848
$schema = array_replace_recursive($schema, $reader->read($scope));
4949
}
5050

51-
if (count($schema['table']) === 0) {
52-
var_dump($this->deploymentConfig->get());
53-
var_dump($this->deploymentConfig->getConfigData());
54-
}
55-
5651
return $schema;
5752
}
5853
}

0 commit comments

Comments
 (0)