Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit b23364d

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

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

dev/tests/setup-integration/framework/Magento/TestFramework/TestCase/SetupTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Instance of Setup test case. Used in order to tweak dataProviders functionality.
1313
*/
14-
class SetupTestCase extends \PHPUnit_Framework_TestCase implements MutableDataInterface
14+
class SetupTestCase extends \PHPUnit\Framework\TestCase implements MutableDataInterface
1515
{
1616
/**
1717
* @var array

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@
7474
new \Magento\TestFramework\Bootstrap\MemoryFactory($shell)
7575
);
7676
$bootstrap->runBootstrap();
77-
if ($settings->getAsBoolean('TESTS_CLEANUP')) {
78-
$application->cleanup();
79-
//remove test modules files
80-
include_once __DIR__ . '/../../setup-integration/framework/removeTestModules.php';
81-
}
77+
$application->cleanup();
78+
//remove test modules files
79+
include_once __DIR__ . '/../../setup-integration/framework/removeTestModules.php';
8280
//We do not want to install anything
8381
$application->initialize([]);
8482

dev/tests/setup-integration/testsuite/Magento/Setup/DeclarativeInstallerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ public function testInstallationWithColumnsModification()
109109
$this->schemaConfig->getDeclarationConfig(),
110110
$this->schemaConfig->getDbConfig()
111111
);
112-
$this->assertNull($diff->getAll());
112+
self::assertNull($diff->getAll());
113113
$shardData = $this->describeTable->describeShard(Sharding::DEFAULT_CONNECTION);
114-
$this->assertEquals($this->getData(), $shardData);
114+
self::assertEquals($this->getData(), $shardData);
115115
}
116116

117117
/**

0 commit comments

Comments
 (0)