Skip to content

Commit 7a60088

Browse files
committed
MAGETWO-84967: Set auto increment to 3 for Performance test plan
1 parent fcbfe1f commit 7a60088

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

dev/tests/integration/testsuite/Magento/Setup/Console/Command/GenerateFixturesCommandTest.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public function setUp()
7777
parent::setUp();
7878
}
7979

80+
/**
81+
* @return string
82+
*/
8083
private function getEdition()
8184
{
8285
if (file_exists(BP . '/setup/performance-toolkit/profiles/b2b/small.xml')) {
@@ -98,6 +101,36 @@ public function tearDown()
98101
parent::tearDown();
99102
}
100103

104+
public static function tearDownAfterClass()
105+
{
106+
parent::tearDownAfterClass();
107+
108+
/** @var $appCache \Magento\Framework\App\Cache */
109+
$appCache = Bootstrap::getObjectManager()->get(\Magento\Framework\App\Cache::class);
110+
$appCache->clean(
111+
[
112+
\Magento\Eav\Model\Cache\Type::CACHE_TAG,
113+
\Magento\Eav\Model\Entity\Attribute::CACHE_TAG,
114+
]
115+
);
116+
}
117+
118+
public static function setUpBeforeClass()
119+
{
120+
$db = Bootstrap::getInstance()->getBootstrap()
121+
->getApplication()
122+
->getDbInstance();
123+
if (!$db->isDbDumpExists()) {
124+
throw new \LogicException('DB dump does not exist.');
125+
}
126+
$db->restoreFromDbDump();
127+
128+
parent::setUpBeforeClass();
129+
}
130+
131+
/**
132+
*
133+
*/
101134
public function testExecute()
102135
{
103136
$profile = BP . "/setup/performance-toolkit/profiles/{$this->getEdition()}/small.xml";

0 commit comments

Comments
 (0)